Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Expose REST: Form data?

$
0
0
Example of a REST web service that retrieves form data and returns a JSON response

HTTP POST request
Authorization: Bearer 123
Body:
user_id=1&first_name="robert"&last_name="chanphakeo"

HTTP POST Response
Content-Type: application/json
Body: 
{
   "success":"robert",
   "message":"successfully updated user profile id: 123"
}

You can consume a web service method that uses form data but not expose a web service method using form data! Form data should be built in, but its not???? the current workaround solution is to retrieve the web content, parse the query string, then assign values to local variables!


Real world example:https://stripe.com/docs/api#create_charge

Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>