Learn how to publish OData services in Mendix Native step by step. This guide will help you expose your data as OData services and make it ready for integration.
Go to MX Studio Pro Create a new module ODATA.
Create an entity and add some sample data. For this tutorial, I’m using a Book entity with a few records.


Right click on ODATA module -> Add other -> Published OData Service & give the name POS_Book.

Now go to POS_Book-> add an entity & then we need to define the operations that external consumers can perform on our exposed entity. We can enable CRUD (Create, Read, Update, and Delete) operations.
But here , I am only enabling read operation. We can also call a microflow from the dropdown if we want to apply conditions using XPath or custom logic, but for now, we will keep it as Database.

After this, go to the Settings tab, copy the generated links, and keep them safe for future use.

If you want to test this in postman -> Go to POS_Book -> Double click on Book entity -> Copy the example of location.


Conclusion:
I hope this article has helped you understand How to Publish OData in Mendix Native.
Thanks for reading this! See you in the next blog post.
You can explore the complete ODATA Series here.
