Last active
December 7, 2015 17:35
-
-
Save Lull3rSkat3r/3badce9b6614e9fb317e to your computer and use it in GitHub Desktop.
A simple Swagger Spec
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
{ | |
"swagger": "2.0", | |
"info": { | |
"description": "This is a simple sample microservice", | |
"version": "0.0.1", | |
"title": "Simple Microservice" | |
}, | |
"paths": { | |
"/simple": { | |
"get": { | |
"summary": "A simple GET", | |
"operationId": "simpleGet", | |
"responses": { | |
"200": { | |
"description": "successful operation" | |
} | |
} | |
}, | |
"post": { | |
"summary": "A simple POST", | |
"operationId": "simplePost", | |
"responses": { | |
"200": { | |
"description": "successful operation" | |
} | |
} | |
}, | |
"put": { | |
"summary": "A simple PUT", | |
"operationId": "simplePut", | |
"consumes": [ | |
"application/json" | |
], | |
"produces": [ | |
"application/json" | |
], | |
"responses": { | |
"200": { | |
"description": "successful operation" | |
} | |
} | |
}, | |
"delete": { | |
"summary": "A simple DELETE", | |
"operationId": "simpleDelete", | |
"responses": { | |
"200": { | |
"description": "successful operation" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment