How can I create an application using REST service for retrieving data from database?

How can I create an application using REST service for retrieving data from database?

  

How can I create an application using REST service for retrieving data from database?

Hi Nickolai,

You can create new Rest Service in 

1) Logic tab -> Integration -> REST

2) Right click REST and select Expose REST Api

3)Then Rename what you want, and Right click again in new RESTAPI and select Add Rest Api method

4) After you can drag your Aggregates or Advance query to retrieve the data from DB,

5) Create new output parameter in REST and create structure you want, and assign inside api method

6) Publish eSpace

7) Right click on Rest new api and select "Open Documentation"

8) There you will all you information about REST Methods, types, endpoint etc.

9) Take this endpoint and use in other eSpace, and repeat (1) , and in( 2) select Consume REST API

10) In dialog choose select all method, enter the url, and outsystems will create new REST API and with your new methods, after use this method anywhere in your eSpace.


Some documents about REST API

https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/REST/Expose_REST_APIs/Expose_a_REST_API


Thanks

Balu

Hi Nickolai,

Is a database extern?