Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix core-command swagger file #4631

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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