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:
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
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