Skip to content

Instantly share code, notes, and snippets.

@ibratoev
Created June 17, 2015 19:33
Show Gist options
  • Save ibratoev/3cccf1c4ea4634cde624 to your computer and use it in GitHub Desktop.
Save ibratoev/3cccf1c4ea4634cde624 to your computer and use it in GitHub Desktop.
{
"definitions": {
"User": {
"properties": {
"email": {
"description": "email for user",
"type": "string"
},
"name": {
"description": "name for user",
"type": "string"
}
},
"required": [
"email",
"name"
]
}
},
"info": {
"title": "TAP DevOps API",
"version": "1.0"
},
"paths": {
"/onprem/versions/": {
"get": {
"description": "",
"parameters": [
{
"in": "path",
"name": "version",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Returns info about the specified version."
},
"400": {
"description": "Version not found."
}
},
"summary": "Get info about an onprem version.",
"tags": [
"onprem"
]
},
"post": {
"description": "",
"responses": {
"201": {
"description": "A new onprem version created."
}
},
"summary": "Create a new onprem version.",
"tags": [
"onprem"
]
}
},
"/onprem/versions/{version}": {
"get": {
"description": "",
"parameters": [
{
"in": "path",
"name": "version",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Returns info about the specified version."
},
"400": {
"description": "Version not found."
}
},
"summary": "Get info about an onprem version.",
"tags": [
"onprem"
]
},
"post": {
"description": "",
"responses": {
"201": {
"description": "A new onprem version created."
}
},
"summary": "Create a new onprem version.",
"tags": [
"onprem"
]
}
},
"/onprem/{module}/latest-versions": {
"get": {
"description": "",
"parameters": [
{
"in": "path",
"name": "module",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Returns latest module onprem version information"
}
},
"summary": "Get latest module onprem version information.",
"tags": [
"onprem"
]
},
"post": {
"description": "",
"parameters": [
{
"in": "body",
"name": "body",
"schema": {
"$ref": "#/definitions/User"
}
},
{
"in": "path",
"name": "module",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "latest module onprem version information updated."
}
},
"summary": "Update latest module onprem version information.",
"tags": [
"onprem"
]
}
}
},
"swagger": "2.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment