Skip to content

Instantly share code, notes, and snippets.

@Lull3rSkat3r
Last active December 7, 2015 17:35
Show Gist options
  • Save Lull3rSkat3r/3badce9b6614e9fb317e to your computer and use it in GitHub Desktop.
Save Lull3rSkat3r/3badce9b6614e9fb317e to your computer and use it in GitHub Desktop.
A simple Swagger Spec
{
"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"
}
}
}
}
}
}
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment