Skip to content

Instantly share code, notes, and snippets.

@derveloper
Last active October 29, 2017 15:35
Show Gist options
  • Save derveloper/94b5214856434e61bf466840cc3fbdab to your computer and use it in GitHub Desktop.
Save derveloper/94b5214856434e61bf466840cc3fbdab to your computer and use it in GitHub Desktop.
{
"components": {"schemas": {"ExampleSchema": {
"properties": {"foo": {"type": "string"}},
"type": "object"
}}},
"info": {
"title": "jjjj",
"version": "1.0"
},
"openapi": "3.0.0",
"paths": {
"/bar": {"put": {
"description": "bar",
"operationId": "",
"responses": {}
}},
"/baz": {"post": {
"description": "bar",
"operationId": "",
"responses": {}
}},
"/del": {"delete": {
"description": "bar",
"operationId": "",
"responses": {}
}},
"/foo": {"get": {
"description": "fooo",
"operationId": "",
"responses": {"200": {
"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ExampleSchema"}}},
"description": "some response"
}}
}},
"/patch": {"patch": {
"description": "bar",
"operationId": "",
"responses": {}
}}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment