-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.yml
116 lines (114 loc) · 2.55 KB
/
schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
openapi: 3.0.3
info:
title: polarRouteServer
version: 0.0.1
description: Backend server for serving PolarRoute and MeshiPhi assets
paths:
/api/route:
post:
operationId: api_route_request
description: Entry point for route requests
tags:
- api
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/route-request'
required: true
responses:
'202':
content:
application/json:
schema:
$ref: '#/components/schemas/route-request-response'
description: ''
/api/route/{id}:
get:
operationId: api_route_retrieve
description: Return status of route calculation and route itself if complete.
parameters:
- in: path
name: id
schema:
type: string
format: uuid
required: true
tags:
- api
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/route-status-response'
description: ''
delete:
operationId: api_route_destroy
description: Cancel route calculation
parameters:
- in: path
name: id
schema:
type: string
format: uuid
required: true
tags:
- api
responses:
'204':
description: No response body
components:
schemas:
route-request:
type: object
properties:
start_lat:
type: number
format: double
start_lon:
type: number
format: double
end_lat:
type: number
format: double
end_lon:
type: number
format: double
force_recalculate:
type: boolean
start_name:
type: string
end_name:
type: string
mesh_id:
type: integer
required:
- start_lat
- start_lon
- end_lat
- end_lon
route-request-response:
type: object
properties:
id:
type: string
format: uuid
nullable: false
status-url:
type: string
format: url
nullable: false
route-status-response:
type: object
properties:
status:
type: string
nullable: false
json:
type: string
nullable: true
polar_route_version:
type: string
nullable: true
maxLength: 60