From 77dec55b418faa4e20f24e3a65085c0ca2555eed Mon Sep 17 00:00:00 2001 From: rautenberg Date: Thu, 15 Oct 2015 10:47:22 +0200 Subject: API: add single descriptor descripton --- api/api.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/api/api.json b/api/api.json index df8716f..98fabf0 100644 --- a/api/api.json +++ b/api/api.json @@ -185,6 +185,56 @@ } } }, + "/algorithm/descriptor/{descriptor}": { + "get": { + "tags": [ + "algorithm", + "descriptor" + ], + "description": "Get a list of a single or all descriptors", + "parameters": [ + { + "name": "accept", + "in": "header", + "description": "requested Content-Type", + "required": true, + "type": "string", + "enum": [ + "text/plain", + "application/json" + ] + }, + { + "name": "descriptor", + "in": "path", + "description": "descriptor", + "required": true, + "type": "string" + } + ], + "produces": [ + "text/plain", + "application/json" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + }, + "401": { + "$ref": "#/responses/401" + }, + "404": { + "$ref": "#/responses/404" + }, + "500": { + "$ref": "#/responses/500" + } + } + } + }, "/api/api.json": { "get": { "tags": [ -- cgit v1.2.3