Skip to content

Commit

Permalink
api created
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlprice committed Jul 8, 2020
1 parent ae008a8 commit 541c360
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 60 deletions.
120 changes: 60 additions & 60 deletions components/components.yaml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
parameters:
accountid:
schema:
type: string
example: jetsonsFutureHome
name: accountid
in: path
required: true
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)
allowEmptyValue: true
deviceName:
schema:
type: string
default: newDevice
example: garageCamera
in: header
name: deviceName
description: devices in the same space require unique names or will be assigned the default name `'newDevice'`
allowEmptyValue: true
deviceid:
schema:
type: string
default: all
example: 123abc
in: header
name: deviceid
description: 'unique identifiers for devices registered on the service cloud, when empty it defaults to `''all''`'
allowEmptyValue: true
required: true
sort:
schema:
type: string
enum:
- asc
- desc
default: desc
example: asc
in: query
name: sort
allowEmptyValue: true
description: will sort objects returned from the request
limit:
schema:
type: integer
default: 10
format: int32
example: 15
maximum: 25
minimum: 1
in: query
name: limit
allowEmptyValue: true
description: specify the number of results returned from the request
accountid:
schema:
type: string
example: jetsonsFutureHome
name: accountid
in: path
required: true
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)
allowEmptyValue: true
deviceName:
schema:
type: string
default: newDevice
example: garageCamera
in: header
name: deviceName
description: devices in the same space require unique names or will be assigned the default name `'newDevice'`
allowEmptyValue: true
deviceid:
schema:
type: string
default: all
example: 123abc
in: header
name: deviceid
description: 'unique identifiers for devices registered on the service cloud, when empty it defaults to `''all''`'
allowEmptyValue: true
required: true
sort:
schema:
type: string
enum:
- asc
- desc
default: desc
example: asc
in: query
name: sort
allowEmptyValue: true
description: will sort objects returned from the request
limit:
schema:
type: integer
default: 10
format: int32
example: 15
maximum: 25
minimum: 1
in: query
name: limit
allowEmptyValue: true
description: specify the number of results returned from the request
61 changes: 61 additions & 0 deletions reference/devices.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,67 @@ servers:
paths: {}
components:
schemas: {}
parameters:
accountid:
schema:
type: string
example: jetsonsFutureHome
name: accountid
in: path
required: true
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)
allowEmptyValue: true
deviceName:
schema:
type: string
default: newDevice
example: garageCamera
in: header
name: deviceName
description: devices in the same space require unique names or will be assigned the default name `'newDevice'`
allowEmptyValue: true
deviceid:
schema:
type: string
default: all
example: 123abc
in: header
name: deviceid
description: 'unique identifiers for devices registered on the service cloud, when empty it defaults to `''all''`'
allowEmptyValue: true
required: true
sort:
schema:
type: string
enum:
- asc
- desc
default: desc
example: asc
in: query
name: sort
allowEmptyValue: true
description: will sort objects returned from the request
limit:
schema:
type: integer
default: 10
format: int32
example: 15
maximum: 25
minimum: 1
in: query
name: limit
allowEmptyValue: true
description: specify the number of results returned from the request
securitySchemes:
API Key:
name: API Key
Expand Down

0 comments on commit 541c360

Please sign in to comment.