Skip to content

Instantly share code, notes, and snippets.

@codeasashu
Created October 4, 2022 19:19
Show Gist options
  • Save codeasashu/714ff5e36723c94385474c38754a5a71 to your computer and use it in GitHub Desktop.
Save codeasashu/714ff5e36723c94385474c38754a5a71 to your computer and use it in GitHub Desktop.
{
"openapi": "3.0.0",
"info": {
"title": "",
"version": "1.0"
},
"paths": {
"/user": {
"get": {
"summary": "Your GET endpoint",
"tags": [],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"a": {
"type": "string"
}
}
}
}
}
},
"201": {
"description": "Created"
},
"400": {
"description": "Bad Request"
},
"403": {
"description": "Forbidden"
}
},
"operationId": "get-user"
}
}
},
"components": {
"schemas": {},
"responses": {},
"parameters": {},
"examples": {},
"requestBodies": {},
"headers": {},
"securitySchemes": {},
"links": {},
"callbacks": {}
},
"tags": [],
"servers": [
{
"url": "https://myoperator.com",
"description": "Dev"
},
{
"url": "http://google.com",
"description": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment