Created
October 4, 2022 19:19
-
-
Save codeasashu/714ff5e36723c94385474c38754a5a71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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