685
Views
2
Comments
Solved
how to consume Post api
Question
Greetings,
below I have a curl which i have to consume . how to send this using rest api??
-------------------------------------------------------------------------------
curl -H 'Content-Type: application/json' -d '{"data":"{\"message\":\"hello world\"}","name":"my-event","channel":"my-channel1"}' \
"https://api-us3.pusher.com/apps/1076110/events?"\
"body_md5=2c8832e9e0&"\
"auth_version=1.0&"\
"auth_key=5ae771e84&"\
"auth_timestamp=1600659337&"\
"auth_signature=67447f614cb5d46351827bee6b1&"
-------------------------------------------------------------------------------------------
Thanks in advance
2018-10-29 08-31-03
João Marques
 
MVP
Solution

Hi anand,


The best way to explain it is in this documentation.


I hope it helps.


Best regards,

João Marques


2025-08-22 10-19-44
Pramod Jain
 
MVP

Hi Anand,

Please check this document which has step by step documentation to consume get and post api.

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs/Consume_One_or_More_REST_API_Methods

Also while consuming an api with Service Studio you will get option to select the type (get/post) and you can also set the parameter fro Header and Body and test it.

OS will also populate the structure based on the response you get from the api to be used in your application.


Regards,

-PJ-

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