2020-07-26 18:22:48 +02:00
|
|
|
openapi: 3.0.3
|
2020-04-06 18:30:26 +02:00
|
|
|
info:
|
2020-07-26 18:22:48 +02:00
|
|
|
title: Output Service - RDB
|
|
|
|
description: This is the feature extraction interface of the Birbnetes system.
|
2020-04-06 18:30:26 +02:00
|
|
|
contact:
|
2020-07-26 18:22:48 +02:00
|
|
|
email: tormakristof@tormakristof.eu
|
2020-04-06 18:30:26 +02:00
|
|
|
license:
|
2020-07-26 18:22:48 +02:00
|
|
|
name: Apache 2.0
|
|
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
|
version: 1.0.0
|
|
|
|
servers:
|
|
|
|
- url: https://dev.k8s.tcloud.enginner/api/result/rdb/v1
|
|
|
|
- url: http://dev.k8s.tcloud.enginner/api/result/rdb/v1
|
2020-04-06 18:30:26 +02:00
|
|
|
tags:
|
2020-07-26 18:22:48 +02:00
|
|
|
- name: result
|
|
|
|
description: Output Service - RDB interaction
|
2020-04-06 18:30:26 +02:00
|
|
|
paths:
|
2020-04-08 03:17:47 +02:00
|
|
|
/result:
|
|
|
|
get:
|
2020-07-26 18:22:48 +02:00
|
|
|
tags:
|
|
|
|
- result
|
2020-04-08 03:17:47 +02:00
|
|
|
summary: Get all decision objects
|
|
|
|
operationId: getall
|
|
|
|
responses:
|
2020-07-26 18:22:48 +02:00
|
|
|
200:
|
2020-04-08 03:17:47 +02:00
|
|
|
description: Array of decision objects
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ResultObjects'
|
|
|
|
404:
|
2020-04-08 03:17:47 +02:00
|
|
|
description: No object matching filter
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ApiResponse'
|
2020-04-08 03:17:47 +02:00
|
|
|
/result/filter/negative:
|
2020-04-06 18:30:26 +02:00
|
|
|
get:
|
2020-07-26 18:22:48 +02:00
|
|
|
tags:
|
|
|
|
- result
|
2020-04-06 18:30:26 +02:00
|
|
|
summary: Get all negative decision objects
|
|
|
|
operationId: getallnegative
|
|
|
|
responses:
|
2020-07-26 18:22:48 +02:00
|
|
|
200:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: Array of decision objects
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ResultObjects'
|
|
|
|
404:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: No object matching filter
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ApiResponse'
|
2020-04-08 03:17:47 +02:00
|
|
|
/result/filter/positive:
|
2020-04-06 18:30:26 +02:00
|
|
|
get:
|
2020-07-26 18:22:48 +02:00
|
|
|
tags:
|
|
|
|
- result
|
2020-04-06 18:30:26 +02:00
|
|
|
summary: Get positive decision objects
|
|
|
|
operationId: getallpositive
|
|
|
|
responses:
|
2020-07-26 18:22:48 +02:00
|
|
|
200:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: Array of decision objects
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ResultObjects'
|
|
|
|
404:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: No object matching filter
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ApiResponse'
|
2020-04-08 03:17:47 +02:00
|
|
|
/result/after/{dateAfter}:
|
2020-04-06 18:30:26 +02:00
|
|
|
get:
|
2020-07-26 18:22:48 +02:00
|
|
|
tags:
|
|
|
|
- result
|
2020-04-06 18:30:26 +02:00
|
|
|
summary: Get decision before a date
|
|
|
|
operationId: getallafter
|
|
|
|
parameters:
|
2020-07-26 18:22:48 +02:00
|
|
|
- name: dateAfter
|
|
|
|
in: path
|
|
|
|
description: Date of filter
|
|
|
|
required: true
|
|
|
|
schema:
|
2020-04-06 18:30:26 +02:00
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
responses:
|
2020-07-26 18:22:48 +02:00
|
|
|
200:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: Array of decision objects
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ResultObjects'
|
|
|
|
404:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: No object matching filter
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ApiResponse'
|
2020-04-08 03:17:47 +02:00
|
|
|
/result/before/{dateBefore}:
|
2020-04-06 18:30:26 +02:00
|
|
|
get:
|
2020-07-26 18:22:48 +02:00
|
|
|
tags:
|
|
|
|
- result
|
2020-04-06 18:30:26 +02:00
|
|
|
summary: Get decision before a date
|
|
|
|
operationId: getallbefore
|
|
|
|
parameters:
|
2020-07-26 18:22:48 +02:00
|
|
|
- name: dateBefore
|
|
|
|
in: path
|
|
|
|
description: Date of filter
|
|
|
|
required: true
|
|
|
|
schema:
|
2020-04-06 18:30:26 +02:00
|
|
|
type: string
|
|
|
|
format: date
|
|
|
|
responses:
|
2020-07-26 18:22:48 +02:00
|
|
|
200:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: Array of decision objects
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ResultObjects'
|
|
|
|
404:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: NO objects matching filter
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ApiResponse'
|
2020-04-08 03:17:47 +02:00
|
|
|
/result/{tagID}:
|
2020-04-06 18:30:26 +02:00
|
|
|
get:
|
2020-07-26 18:22:48 +02:00
|
|
|
tags:
|
|
|
|
- result
|
2020-04-06 18:30:26 +02:00
|
|
|
summary: Get decision by ID
|
|
|
|
operationId: getDecision
|
|
|
|
parameters:
|
2020-07-26 18:22:48 +02:00
|
|
|
- name: tagID
|
|
|
|
in: path
|
|
|
|
description: ID of wave file
|
|
|
|
required: true
|
|
|
|
schema:
|
2020-04-06 18:30:26 +02:00
|
|
|
type: integer
|
|
|
|
format: int32
|
|
|
|
responses:
|
2020-07-26 18:22:48 +02:00
|
|
|
200:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: Decision object
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ResultObject'
|
|
|
|
404:
|
2020-04-06 18:30:26 +02:00
|
|
|
description: Tag not found
|
2020-07-26 18:22:48 +02:00
|
|
|
content:
|
|
|
|
'application/JSON':
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/ApiResponse'
|
|
|
|
components:
|
|
|
|
schemas:
|
|
|
|
ResultObjects:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
$ref: '#/components/schemas/ResultObject'
|
|
|
|
ResultObject:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
tag:
|
|
|
|
type: string
|
|
|
|
probability:
|
|
|
|
type: number
|
|
|
|
ApiResponse:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
status:
|
|
|
|
type: string
|
|
|
|
message:
|
|
|
|
type: string
|