Skip to content

Commit

Permalink
added a path
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlprice committed Jul 9, 2020
1 parent 5abef04 commit b0b83c6
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions reference/devices.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,18 @@ info:
url: 'https://opensource.org/licenses/MIT'
servers:
- url: 'http://localhost:3000'
paths: {}
paths:
/api/devices:
get:
summary: getDevices
tags: []
responses: {}
operationId: get-api-devices
post:
summary: newDevice
tags: []
responses: {}
operationId: post-api-devices
components:
schemas: {}
parameters:
Expand All @@ -24,15 +35,15 @@ components:
name: accountid
in: path
required: true
description: unique per account (see `'My Account'` for more information)
description: "unique per account (see `'My Account'` for more information)"
spaceid:
schema:
type: string
example: seattle-office
default: all
in: query
name: spaceid
description: location associated with the devices (see `'My Spaces'` for more information)
description: "location associated with the devices (see `'My Spaces'` for more information)"
allowEmptyValue: true
deviceName:
schema:
Expand All @@ -41,7 +52,7 @@ components:
example: garageCamera
in: header
name: deviceName
description: devices in the same space require unique names or will be assigned the default name `'newDevice'`
description: "devices in the same space require unique names or will be assigned the default name `'newDevice'`"
allowEmptyValue: true
deviceid:
schema:
Expand All @@ -50,7 +61,7 @@ components:
example: 123abc
in: header
name: deviceid
description: 'unique identifiers for devices registered on the service cloud, when empty it defaults to `''all''`'
description: "unique identifiers for devices registered on the service cloud, when empty it defaults to `'all'`"
allowEmptyValue: true
required: true
sort:
Expand Down

0 comments on commit b0b83c6

Please sign in to comment.