Created
June 17, 2015 19:33
-
-
Save ibratoev/3cccf1c4ea4634cde624 to your computer and use it in GitHub Desktop.
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
{ | |
"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