Created
December 4, 2014 17:35
-
-
Save mraible/b4a1a21e45dba14f03bc to your computer and use it in GitHub Desktop.
Swagger sample from Restlet Studio
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": "Articles at InfoQ", | |
"version": "1.0.0", | |
"title": "Articles API", | |
"contact": {}, | |
"license": { | |
"name": "TBD" | |
} | |
}, | |
"host": "infoq.com:443", | |
"basePath": "/api", | |
"schemes": [ | |
"https" | |
], | |
"paths": { | |
"/article/{id}": { | |
"get": { | |
"tags": [ | |
"Articles" | |
], | |
"summary": "Fetch", | |
"description": "Fetch", | |
"consumes": [], | |
"produces": [], | |
"parameters": [ | |
{ | |
"in": "query", | |
"name": "id", | |
"required": false, | |
"type": "string" | |
} | |
] | |
}, | |
"post": { | |
"tags": [ | |
"Articles" | |
], | |
"summary": "Publish", | |
"description": "Publish", | |
"consumes": [], | |
"produces": [] | |
}, | |
"put": { | |
"tags": [ | |
"Articles" | |
], | |
"summary": "Update", | |
"description": "Update", | |
"consumes": [], | |
"produces": [] | |
}, | |
"delete": { | |
"tags": [ | |
"Articles" | |
], | |
"summary": "Remove", | |
"description": "Remove", | |
"consumes": [], | |
"produces": [] | |
} | |
}, | |
"/articles": { | |
"get": { | |
"tags": [ | |
"Articles" | |
], | |
"consumes": [], | |
"produces": [] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment