@@ -4,7 +4,7 @@ openapi: 3.0.3
4
4
# - url: http://localhost:8081
5
5
6
6
info :
7
- version : " 1.0.0-beta.22 "
7
+ version : " 1.0.0-beta.24 "
8
8
title : TinyIoT Thing Directory
9
9
description : API documentation of the [TinyIoT Thing Directory](https://github.com/tinyiot/thing-directory)
10
10
license :
@@ -18,15 +18,29 @@ tags:
18
18
description : Search API
19
19
- name : events
20
20
description : Notification API
21
- - name : validation
22
- description : Validation API (non-normative)
23
21
24
22
paths :
25
23
/things :
26
24
get :
27
25
tags :
28
26
- things
29
27
summary : Retrieves the list of Thing Descriptions
28
+ parameters :
29
+ - name : offset
30
+ in : query
31
+ description : Offset number in the pagination
32
+ required : false
33
+ schema :
34
+ type : number
35
+ format : integer
36
+ default : 0
37
+ - name : limit
38
+ in : query
39
+ description : Number of entries per page. When not set, all entries are returned incrementally.
40
+ required : false
41
+ schema :
42
+ type : number
43
+ format : integer
30
44
responses :
31
45
' 200 ' :
32
46
description : Successful response
@@ -251,47 +265,6 @@ paths:
251
265
$ref : ' #/components/responses/RespForbidden'
252
266
' 500 ' :
253
267
$ref : ' #/components/responses/RespInternalServerError'
254
- /search/xpath :
255
- get :
256
- tags :
257
- - search
258
- summary : Query TDs with XPath expression
259
- description : The query languages, described [here](https://github.com/tinyiot/thing-directory/wiki/Query-Language), can be used to filter results and select parts of Thing Descriptions.
260
- parameters :
261
- - name : query
262
- in : query
263
- description : xPath 3.0 expression for fetching specific items. E.g. `//*[title='Kitchen Lamp']/properties`
264
- required : true
265
- schema :
266
- type : string
267
- # example: //*[title='Kitchen Lamp']/properties
268
- responses :
269
- ' 200 ' :
270
- description : Successful response
271
- content :
272
- application/json :
273
- schema :
274
- type : array
275
- items :
276
- oneOf :
277
- - type : string
278
- - type : number
279
- - type : integer
280
- - type : boolean
281
- - type : array
282
- - type : object
283
- # examples:
284
- # ThingDescriptionList:
285
- # $ref: '#/components/examples/ThingDescriptionList'
286
- ' 400 ' :
287
- $ref : ' #/components/responses/RespBadRequest'
288
- ' 401 ' :
289
- $ref : ' #/components/responses/RespUnauthorized'
290
- ' 403 ' :
291
- $ref : ' #/components/responses/RespForbidden'
292
- ' 500 ' :
293
- $ref : ' #/components/responses/RespInternalServerError'
294
-
295
268
296
269
/events :
297
270
get :
@@ -352,62 +325,11 @@ paths:
352
325
' 500 ' :
353
326
$ref : ' #/components/responses/RespInternalServerError'
354
327
355
-
356
- /validation :
357
- get :
358
- tags :
359
- - validation
360
- summary : Retrieves the validation result for a given Thing Description
361
- description : |
362
- The Thing Description should be provided as JSON in the request body.<br>
363
- Note: This is currently not supported using Swagger UI.<br>
364
- This endpoint is non-normative.
365
- responses :
366
- ' 200 ' :
367
- description : Validation Result
368
- content :
369
- application/json :
370
- schema :
371
- $ref : ' #/components/schemas/ValidationResult'
372
- ' 400 ' :
373
- $ref : ' #/components/responses/RespBadRequest'
374
- ' 401 ' :
375
- $ref : ' #/components/responses/RespUnauthorized'
376
- ' 403 ' :
377
- $ref : ' #/components/responses/RespForbidden'
378
- ' 500 ' :
379
- $ref : ' #/components/responses/RespInternalServerError'
380
- # wait for openapi 3.1.0 which brings back support for requetsBody in GET
381
- # requestBody:
382
- # content:
383
- # application/ld+json:
384
- # schema:
385
- # $ref: '#/components/schemas/ThingDescription'
386
- # examples:
387
- # ThingDescription:
388
- # $ref: '#/components/examples/ThingDescriptionWithID'
389
328
security :
390
329
- BasicAuth : []
391
330
- BearerAuth : []
392
331
393
332
components :
394
- parameters :
395
- ParamPage :
396
- name : page
397
- in : query
398
- description : Page number in the pagination
399
- required : false
400
- schema :
401
- type : number
402
- format : integer
403
- ParamPerPage :
404
- name : per_page
405
- in : query
406
- description : Number of entries per page
407
- required : false
408
- schema :
409
- type : number
410
- format : integer
411
333
securitySchemes :
412
334
BasicAuth :
413
335
type : http
0 commit comments