Skip to content

Instantly share code, notes, and snippets.

@mraible
Created December 4, 2014 17:35
Show Gist options
  • Save mraible/b4a1a21e45dba14f03bc to your computer and use it in GitHub Desktop.
Save mraible/b4a1a21e45dba14f03bc to your computer and use it in GitHub Desktop.
Swagger sample from Restlet Studio
{
"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