-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPI.yaml
More file actions
222 lines (211 loc) · 6.25 KB
/
API.yaml
File metadata and controls
222 lines (211 loc) · 6.25 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
openapi: '3.0.3'
info:
title: OpenSpatialAsset API
contact:
name: OpenSpatailWorld
url: https://www.WebOfWorlds.io/
version: '0.0.1'
servers:
- url: https://asset.OpenSpatialWorld.io/v1
description: Test Server
externalDocs:
url: https://www.iana.org/assignments/media-types/model.csv
description: Official list of available IANA registered model types.
paths:
/:
head:
description: Used to authorize resources and simultaneously check whether ETag still matches cached ETag.
tags:
- Authorize and validate access
responses:
'200':
description: User has access to this resource. Any other response is regarded as being unauthorized. Redirects are not followed.
headers:
ETag:
description: RFC2616 revision control. Used to determine if cached data is current.
schema:
type: string
'403':
description: Forbidden. User does not have authorization to view this resource.
'404':
description: Not Found. Element does not exist or user does not have authorization to know whether this resource exists or not.
get:
description: Used to negotiate and fetch a data instance as resources.
tags:
- Asset content provisioning
responses:
'200':
description: Success. See the examples below for a full list of possible Content-Types to return.
headers:
ETag:
description: RFC2616 revision control. Used to determine if cached data is current.
schema:
type: string
Content-Disposition:
description: HTTP header which defines a filename for the content. Will be used as a fallback if Content-Type is not given. The file extension will be used as a hint to select an appropriate loader.
schema:
type: string
content:
model/3mf:
example: binary-data
schema:
type: string
format: binary
model/e57:
example: binary-data
schema:
type: string
format: binary
model/gltf-binary:
example: binary-data
schema:
type: string
format: binary
model/gltf+json:
example: json
schema:
type: string
format: json
model/JT:
example: binary-data
schema:
type: string
format: binary
model/iges:
example: binary-data
schema:
type: string
format: binary
model/mtl:
example: binary-data
schema:
type: string
format: binary
model/obj:
example: binary-data
schema:
type: string
format: binary
model/prc:
example: binary
schema:
type: string
format: binary
model/step:
example: binary
schema:
type: string
format: binary
model/step+xml:
example: xml-data
schema:
type: string
format: xml-data
model/step+zip:
example: binary
schema:
type: string
format: binary
model/step-xml+zip:
example: binary
schema:
type: string
format: binary
model/stl:
example: binary-data
schema:
type: string
format: binary
model/vnd.collada+xml:
example: xml-data
schema:
type: string
format: xml-data
model/vnd.usda:
example: binary
schema:
type: string
format: binary
model/vnd.usdz+zip:
example: binary-data
schema:
type: string
format: binary
model/vrml:
example: binary-data
schema:
type: string
format: binary
model/x3d-vrml:
example: binary-data
schema:
type: string
format: binary
model/x3d+fastinfoset:
example: binary-data
schema:
type: string
format: binary
model/x3d+xml:
example: xml-data
schema:
type: string
format: xml-data
/wow/asset:
get:
summary: Returns a asset status as a single data state
responses:
"200": # status code
description: "asset state and summary"
content:
application/json:
schema:
$ref: "#/components/schemas/Asset"
'302':
description: Resource is located elsewhere.
'403':
description: Forbidden.
'404':
description: Not Found.
components:
schemas:
Asset:
type: object
properties:
content:
type: object
properties:
label:
type: string
age_restriction:
type: number
license:
type: string
cost:
type: string
version:
type: number
geoPose:
type: object
properties:
position:
type: object
properties:
lat:
type: number
lan:
type: number
h:
type: number
angles:
type: object
properties:
yaw:
type: number
pitch:
type: number
roll:
type: number
tags:
- name: Authorize
- name: Load