Skip to content

Commit

Permalink
fix: Fix core-command swagger file
Browse files Browse the repository at this point in the history
fixing core-command swagger file that has incorrect example and missing PUT parameters

Closes: #4629
Signed-off-by: Valina Li <[email protected]>
  • Loading branch information
vli11 committed Aug 12, 2023
1 parent 3ee9d72 commit caa27c1
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions openapi/v3/core-command.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,14 @@ paths:
required: true
schema:
type: string
example: sensor01
example: Random-Boolean-Device
description: "A name uniquely identifying a device."
- in: path
name: command
required: true
schema:
type: string
example: command01
example: Bool
description: "A name uniquely identifying a command."
- in: query
name: ds-pushevent
Expand Down Expand Up @@ -562,6 +562,22 @@ paths:
$ref: '#/components/examples/503Example'
put:
summary: "Issue the specified write command referenced by the command name to the device/sensor that is also referenced by name."
parameters:
- $ref: '#/components/parameters/correlatedRequestHeader'
- in: path
name: name
required: true
schema:
type: string
example: Random-Boolean-Device
description: "A name uniquely identifying a device."
- in: path
name: command
required: true
schema:
type: string
example: Bool
description: "A name uniquely identifying a command."
requestBody:
content:
application/json:
Expand Down Expand Up @@ -647,6 +663,7 @@ paths:
required: true
schema:
type: string
example: Random-Boolean-Device
description: "A name uniquely identifying a device."
get:
summary: "Returns all commands associated with the specified device."
Expand Down

0 comments on commit caa27c1

Please sign in to comment.