forked from gsn/predictor
feat: generated pkg/rest
This commit is contained in:
parent
419c07886c
commit
5158c5d7c9
20 changed files with 4199 additions and 1 deletions
|
|
@ -23,9 +23,31 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Prediction/Parameters'
|
||||
responses:
|
||||
"200":
|
||||
description: "Prediction response"
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/Prediction/Result'
|
||||
default:
|
||||
description: Error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
|
||||
components:
|
||||
schemas:
|
||||
Error:
|
||||
type: object
|
||||
required:
|
||||
- message
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
details:
|
||||
type: string
|
||||
Prediction:
|
||||
Parameters:
|
||||
type: object
|
||||
|
|
@ -68,4 +90,40 @@ components:
|
|||
default: json
|
||||
dataset:
|
||||
type: string
|
||||
format: date-time
|
||||
format: date-time
|
||||
Result: #
|
||||
type: object
|
||||
required:
|
||||
- metadata
|
||||
- prediction
|
||||
properties:
|
||||
metadata:
|
||||
type: object
|
||||
required:
|
||||
- complete_datetime
|
||||
- start_datetime
|
||||
properties:
|
||||
complete_datetime:
|
||||
type: string
|
||||
format: date-time
|
||||
start_datetime:
|
||||
type: string
|
||||
format: date-time
|
||||
prediction:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
required:
|
||||
- stage
|
||||
- trajectory
|
||||
properties:
|
||||
stage:
|
||||
type: string
|
||||
enum: ["ascent", "descent"]
|
||||
trajectory:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
required:
|
||||
- datetime
|
||||
- latitude
|
||||
Loading…
Add table
Add a link
Reference in a new issue