@redocly/cli
Version:
[@Redocly](https://redocly.com) CLI is your all-in-one OpenAPI utility. It builds, manages, improves, and quality-checks your OpenAPI descriptions, all of which comes in handy for various phases of the API Lifecycle. Create your own rulesets to make API g
71 lines (70 loc) • 1.49 kB
JSON
{
"openapi": "3.0.1",
"info": {
"title": "TEST",
"description": "TEST",
"version": "v1",
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"servers": [
{
"url": "http://petstore.swagger.io/v1"
}
],
"components": {
"schemas": {
"Test": {
"nullable": true
}
}
},
"paths": {
"/test": {
"get": {
"summary": "test",
"operationId": "test",
"responses": {
"202": {
"description": "Test",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Test"
},
"example": {}
}
}
},
"400": {
"description": "An error response"
}
}
}
}
},
"x-webhooks": {
"test": {
"post": {
"summary": "New pet",
"description": "Information about a new pet in the systems",
"operationId": "newPet",
"tags": ["pet"],
"requestBody": {
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/Test" }
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
}
}
}
}
}