forked from gsn/predictor
feat: predictions
This commit is contained in:
parent
42e7924be9
commit
11be8f351f
42 changed files with 2221 additions and 516 deletions
|
|
@ -36,6 +36,25 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
/ready:
|
||||
get:
|
||||
tags:
|
||||
- Health
|
||||
summary: Readiness check
|
||||
operationId: readinessCheck
|
||||
responses:
|
||||
"200":
|
||||
description: Readiness status
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ReadinessResponse'
|
||||
default:
|
||||
description: Error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
|
|
@ -125,4 +144,31 @@ components:
|
|||
type: object
|
||||
required:
|
||||
- datetime
|
||||
- latitude
|
||||
- latitude
|
||||
- longitude
|
||||
- altitude
|
||||
properties:
|
||||
datetime:
|
||||
type: string
|
||||
format: date-time
|
||||
latitude:
|
||||
type: number
|
||||
longitude:
|
||||
type: number
|
||||
altitude:
|
||||
type: number
|
||||
ReadinessResponse:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
type: string
|
||||
enum: [ok, not_ready, error]
|
||||
last_update:
|
||||
type: string
|
||||
format: date-time
|
||||
is_fresh:
|
||||
type: boolean
|
||||
error_message:
|
||||
type: string
|
||||
required:
|
||||
- status
|
||||
Loading…
Add table
Add a link
Reference in a new issue