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) ?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.