updated stuff

This commit is contained in:
Pünkösd Marcell 2020-04-15 03:03:38 +02:00
parent 25addd9ce4
commit 345a415b37

View File

@ -1,7 +1,7 @@
swagger: "2.0" swagger: "2.0"
info: info:
description: "This is the model-service interface of the Birbnetes system." description: "This is the model-service interface of the Birbnetes system."
version: "1.0.0" version: "1.0.1"
title: "Model Service" title: "Model Service"
contact: contact:
email: "punkosdmarcell@rocketmail.com" email: "punkosdmarcell@rocketmail.com"
@ -18,6 +18,19 @@ schemes:
- "http" - "http"
paths: paths:
/model: /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: post:
tags: tags:
- "model" - "model"
@ -48,6 +61,7 @@ paths:
description: "A model with this Id already exists" description: "A model with this Id already exists"
schema: schema:
$ref: "#/definitions/ApiResponse" $ref: "#/definitions/ApiResponse"
/model/{modelId}: /model/{modelId}:
get: get:
tags: tags:
@ -118,7 +132,6 @@ paths:
schema: schema:
$ref: "#/definitions/ApiResponse" $ref: "#/definitions/ApiResponse"
/model/{modelId}/details: /model/{modelId}/details:
get: get:
tags: tags:
@ -152,6 +165,7 @@ definitions:
type: "string" type: "string"
msg: msg:
type: "string" type: "string"
UploadInfo: UploadInfo:
type: "object" type: "object"
properties: properties:
@ -159,9 +173,26 @@ definitions:
type: "string" type: "string"
id: id:
type: "string" type: "string"
BriefModelDetails:
type: array
items:
type: "object"
properties:
id:
type: string
default:
type: boolean
ModelDetails: ModelDetails:
type: "object" type: "object"
properties: properties:
id:
type: string
timestamp:
type: string
default:
type: boolean
mid_window: mid_window:
type: number type: number
mid_step: mid_step:
@ -171,6 +202,6 @@ definitions:
short_step: short_step:
type: number type: number
compute_beat: compute_beat:
type: number type: boolean
type: type:
type: string type: string