Hello all
I have have exposed a REST API to import and store excel sheet in database as below.
its Working on Postman But i am unable to consume it and upload excel sheet on screen.
below is the screen where i am trying to upload the excel sheet.
And here is the upload action i have created.
Also let me know what to pass in below screen to Test;
Hi Sanjay,
If you don't get the expected results when you try something, if you are posting it on the forum please try to avoid writing "I'm unable to" or "it doesn't work" etc. Describe what steps you took, and what result you got, and what you expected. Otherwise it's very, very difficult to help you.
If you want to consume a REST API that you created in OutSystems, the easiest way to consume it is to use the API's Swagger output. To do so, in the exposed REST API in Service Studio select "Show documentation" from the context menu, copy that URL, consume the REST API in the other module and select "multiple methods" (the second choice), then paste the URL. Thus OutSystems should automatically create everything you need.
Yes Thank you So much @Kilian Hekhuis
You're most welcome. If my answer solved your question, please mark it as Solution, thanks!
Hi,
I can see you have create and exposed you're API.
I can see where you are consuming it though, you may need another function to consume what you have exposed if that makes sense.
If you look at the REST API icon above you can see an arrow pointing to the left which indicates you are exposing the API.
When you are consuming an API the icon is similar but the arrow is pointing inwards to indicate you are consuming the API.
These docs might help: https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST
Hi Jay,
I don't think this is what the OP meant, it seems like he's aware of what OutSystem's REST capabilites are, but he's just confused about how to properly consume his own REST service.
EDIT: edited for language