Tools, FAQ, Tutorials:
Add Request Body Examples - 2017 Version
How to add request body examples to my Azure API operation 2017 version to make it more user friendly?
✍: FYIcenter.com
If you have created the "First API" API and "Add new user" operation
as described in previous tutorials,
you can follow this tutorial to add request body examples.
1. Go to the publisher portal of the API Management Service.
2. Open the "First API" and open the operation "Add new user".
3. Click "Body" on the left. You see a list of body detail fields.
4. Fill in each field with the following:
Description: Provide the new user information in the body.
ADD REPRESENTATION
text/xml
<user>
<name>Joe</name>
<age>25</age>
</user>
5. Click the "Save" button. The API operation is updated.
Click "ADD REPRESENTATION" to add more examples, like:
application/json
{
"user": {
"name": "Joe",
"age": "25"
}
}
The picture below shows you steps on how to add request body examples on an API operation:
⇒ View Effective Policy of API Operation - 2017 Version
⇐ Add API to API Products - 2017 Version
2018-06-09, ∼3772🔥, 0💬
Popular Posts:
How to create a VC# class and build it into a library? If you want to create a VC# class and build i...
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example ...
What is EPUB 2.0 Metadata "dc:creator" and "dc:contributor" elements? EPUB 2.0 Metadata "dc:creator"...
How To Break a File Path Name into Parts in PHP? If you have a file name, and want to get different ...
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...