Publish an OData service with two associated entities

0
Hello everyone.   I want to publish an OData service in my application from two entities that are associated (one to many). But when trying them with Postman I can only see the data of one entity.   I would like to be able to query the data where I can see the association, that is, see the data of the two entities. How could I do this?   I appreciate if you can guide me or show me the way to be able to consult the data of the two entities through OData.
asked
2 answers
1

Hi Sergio

 

Via the documentation, you can find your way on how to expose your datamodel via OData v3/v4 the correct way: https://docs.mendix.com/refguide/integration/odata-services/

 

If you want to make (parts of) your datamodel available through OData, you can follow the instructions here: https://docs.mendix.com/refguide/published-odata-services/

 

To check which entities are readable go via https://docs.mendix.com/refguide/published-odata-entity/#readable 

 

To fetch your association, you can find a detailed how-to here: https://docs.mendix.com/refguide/supported-odata-operations/, below 2.3 Retrieving associated objects: https://docs.mendix.com/refguide/supported-odata-operations/#231-retrieving-associated-objects

 

I hope this helps you further.

 

Kind regards,

Leander

answered
1

Thanks for your help, it was very useful!

answered