Open Closed

Master-Child-Relationship-visible-on-swagger-but-when-we-execute-get-requests-from-postman-they-are [] /Empty child/ nested entities #9314


User avatar
0
Dicky.tech@gmail.com created

Master/ Child Relationship visible on swagger but when we execute get requests from postman they are blank i.e salestransactionslines [] . What do we need to do so that postman give the response json format attached ( with child/ nested entities for the child entities) ?


1 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, you should get child entity records through its own APIs, by passing the master entity's Id. For example, if you have Book master entity, and a BookDetail child entity that is associated with the Book entity, then you can get the child entities (book details) via an endpoint like this: https://localhost:44363/api/app/book-details/by-book-id?bookId=<bookId>&skipCount=0&maxResultCount=10

    So, you can update the endpoint above for your entities, and get the child entities.

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20