Skip to content

Instantly share code, notes, and snippets.

@aaronj314
Created September 20, 2018 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronj314/8032c81354c94a581587ef0c13eed2ae to your computer and use it in GitHub Desktop.
Save aaronj314/8032c81354c94a581587ef0c13eed2ae to your computer and use it in GitHub Desktop.
apibuilder-demo
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Vehicles",
"description": "Vehicles API"
},
"paths": {
"/": {
"get": {
"operationId": "GET_root",
"summary": "findCars",
"produces": [
"application/json",
"text/plain"
],
"parameters": [
{
"name": "makeid",
"in": "query",
"type": "string"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"type": "object",
"properties": {
"make": {
"type": "string"
},
"model": {
"type": "string"
}
}
}
},
"400": {
"description": "Bad request",
"schema": {
"type": "object",
"properties": {
"description": {
"type": "string"
}
}
}
}
}
}
}
},
"definitions": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment