Example
The Sample button loads a small specification chosen for this operation. Running it produces the same structured fields shown in the output panel.
{
"swagger": "2.0",
"info": {
"title": "Pet API",
"version": "1"
},
"basePath": "/v1",
"schemes": [
"https"
],
"host": "api.example.com",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"definitions": {
"Pet": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
},
"paths": {
"/pets": {
"post": {
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Pet"
}
}
],
"responses": {
…