Skip to content

Instantly share code, notes, and snippets.

@eabrouwer3
Last active April 10, 2019 20:25
Show Gist options
  • Save eabrouwer3/fc62a214c50f6f8128a4bfdc8dd52ff5 to your computer and use it in GitHub Desktop.
Save eabrouwer3/fc62a214c50f6f8128a4bfdc8dd52ff5 to your computer and use it in GitHub Desktop.
Openapi JSON file
{
"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