updated stuff

This commit is contained in:
Pünkösd Marcell 2020-04-15 03:03:38 +02:00
parent 25addd9ce4
commit 345a415b37
1 changed files with 34 additions and 3 deletions

View File

@ -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