Last active
April 10, 2019 20:25
-
-
Save eabrouwer3/fc62a214c50f6f8128a4bfdc8dd52ff5 to your computer and use it in GitHub Desktop.
Openapi JSON file
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.2", | |
"info": { | |
"description": "API documentation built using OpenAPI spec 3.0.2", | |
"version": "1.0.0", | |
"title": "Test App API" | |
}, | |
"paths": { | |
"/user/stuff/": { | |
"get": { | |
"summary": "Get's a list of all the user's stuff", | |
"responses": { | |
"200": { | |
"description": "List of user's stuff" | |
} | |
} | |
}, | |
"post": { | |
"summary": "", | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "Stuff that was just added" | |
} | |
} | |
} | |
}, | |
"/user/otherstuff/": { | |
"get": { | |
"deprecated": true, | |
"summary": "Get some more of the user's stuff", | |
"parameters": [{ | |
"in": "query", | |
"name": "per_page", | |
"required": false, | |
"schema": { | |
"type": "integer", | |
"default": 100 | |
}, | |
"description": "How much to display per page" | |
}], | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment