Expose and consume API and display data on the screen


Hi @all as I new to expose and consume API.

Please help me and make some changes in my .oml

I want to expose and consume the movie API it here so how to do these.

And also display the list of movie to the screen.

MoviesExposeandConsumeAPI.oml

Hi @Rohan Roy,

As you requested, I have attached a sample application to Expose and Consume REST API.

Good luck!!

Thanks, Aadhavan S

RESTAPISample.oap

Hi @Rohan Roy,

Refer below step by step articles to expose and consume REST API in OutSystems.

Consume REST API - https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs

Expose REST API - https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Expose_REST_APIs

REST API - https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST

Also, you can refer to this training material - https://www.outsystems.com/training/courses/116/integrating-with-web-services/

Moreover that I could see from your attached OML, I could see you are exposing API in the reactive module and creating a screen in the same module.. This is not a best practice. 

Create a new application/  core module (blank) to expose REST API data and another application or Reactive module to consume API data and display it into the front end screen.

Thanks, Aadhavan S



Hi @Rohan Roy,

As you requested, I have attached a sample application to Expose and Consume REST API.

Good luck!!

Thanks, Aadhavan S

RESTAPISample.oap

Hello Rohan Roy, 

Firstly you must finish your exposed service, by simply add an output to it.


After that you can Consume this API by adding a Consume REST API with your Exposed URL API. 

e.g: server/application/<URL present on your exposed API>.


The easy part now is to display this result on the screen ;)


Hope it help

Best Regards,

Tomás Dionísio.

Hi...Tomas please send me an modified .oml

so that it will clear to me

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.