Skip to content

Commit

Permalink
fix swagger
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milosevic <iva@blokovi.com>
  • Loading branch information
blokovi committed Mar 5, 2021
1 parent 4609c9e commit f46fc09
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions things/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ paths:
'415':
description: Missing or invalid content type.
'422':
description: Database can't process request.
description: Unprocessable Entity.
'500':
$ref: "#/components/responses/ServiceError"
get:
Expand Down Expand Up @@ -75,10 +75,6 @@ paths:
- things
parameters:
- $ref: "#/components/parameters/Authorization"
- $ref: "#/components/parameters/Limit"
- $ref: "#/components/parameters/Offset"
- $ref: "#/components/parameters/Order"
- $ref: "#/components/parameters/Direction"
requestBody:
$ref: "#/components/requestBodies/ThingsSearchReq"
responses:
Expand Down Expand Up @@ -610,6 +606,21 @@ components:
metadata:
type: object
description: Object-encoded thing's data.
total:
type: integer
description: Total number of items.
offset:
type: integer
description: Number of items to skip during retrieval.
limit:
type: integer
description: Maximum number of items to return in one page.
order:
type: string
description: Order type.
dir:
type: string
description: Order direction.
ThingResSchema:
type: object
properties:
Expand Down

0 comments on commit f46fc09

Please sign in to comment.