Apidog version 2.7.0 or later is required.
Edit page of your endpoint documentation.Request Body section.+ Add button to create a new request body example.Example 1, Example 2, etc.Extract-> Extract to "Request Example".Run page of the endpoint documentation and locate theAuto-generatesection.Auto-generate to access the following options:1).OAS Key for the request body examples.examples.1) are automatically used as field names. "examples": {
"example1": {
"value": {
"name": "Blake Keeling",
"id": "165061",
"email": "Blake.Keeling@gmail.com"
},
"summary": "example1",
"description": "This is`example 1`"
},
"example2": {
"value": {
"name": "Jolie Kutch",
"id": "138164",
"email": "Jolie_Kutch@hotmail.com"
},
"summary": "example 2",
"description": "This is`example 2`"
}
} "examples": {
"1": {
"value": {
"name": "Blake Keeling",
"id": "165061",
"email": "Blake.Keeling@gmail.com"
},
"summary": "example1",
"description": "This is`example 1`"
},
"2": {
"value": {
"name": "Jolie Kutch",
"id": "138164",
"email": "Jolie_Kutch@hotmail.com"
},
"summary": "example 2",
"description": "This is`example 2`"
}
} {
"x-demo": true,
"x-scenario": "error_case"
}"examples": {
"example1": {
"x-demo": true,
"x-scenario": "error_case",
"value": {
"name": "Blake Keeling",
"id": "165061",
"email": "Blake.Keeling@gmail.com"
},
"summary": "example1",
"description": "This is`example 1`"
}
}