From 345a415b376ef256c0cb68921eaf11e2d849181a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=BCnk=C3=B6sd=20Marcell?= Date: Wed, 15 Apr 2020 03:03:38 +0200 Subject: [PATCH] updated stuff --- model.yaml | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/model.yaml b/model.yaml index 106b528..1dbf244 100644 --- a/model.yaml +++ b/model.yaml @@ -1,7 +1,7 @@ swagger: "2.0" info: description: "This is the model-service interface of the Birbnetes system." - version: "1.0.0" + version: "1.0.1" title: "Model Service" contact: email: "punkosdmarcell@rocketmail.com" @@ -18,6 +18,19 @@ schemes: - "http" paths: /model: + get: + tags: + - "model" + summary: "Return a brief list of available models" + description: "Returns a brief list of available models" + operationId: "getModelList" + produces: + - "application/json" + responses: + 200: + description: "A brief list of available models" + schema: + $ref: "#/definitions/BriefModelDetails" post: tags: - "model" @@ -48,6 +61,7 @@ paths: description: "A model with this Id already exists" schema: $ref: "#/definitions/ApiResponse" + /model/{modelId}: get: tags: @@ -118,7 +132,6 @@ paths: schema: $ref: "#/definitions/ApiResponse" - /model/{modelId}/details: get: tags: @@ -152,6 +165,7 @@ definitions: type: "string" msg: type: "string" + UploadInfo: type: "object" properties: @@ -159,9 +173,26 @@ definitions: type: "string" id: type: "string" + + BriefModelDetails: + type: array + items: + type: "object" + properties: + id: + type: string + default: + type: boolean + ModelDetails: type: "object" properties: + id: + type: string + timestamp: + type: string + default: + type: boolean mid_window: type: number mid_step: @@ -171,6 +202,6 @@ definitions: short_step: type: number compute_beat: - type: number + type: boolean type: type: string \ No newline at end of file