kiolyn-api-specs
Version:
74 lines (73 loc) • 1.9 kB
YAML
/ccdevice/{storeid}:
get:
tags:
- ccdevice
description: Return all the ccdevices belong to given store
operationId: listCCDevices
security:
- bearerAuth: []
parameters:
- $ref#storeid: './parameters/storeid.yaml'
responses:
$ref#4xx: './responses/4xx.yaml'
200:
description: list of ccdevice
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/CCDevice'
post:
tags:
- ccdevice
description: Update/Create ccdevice
operationId: saveCCDevice
security:
- bearerAuth: []
parameters:
- $ref#storeid: './parameters/storeid.yaml'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CCDevice'
responses:
$ref#4xx: './responses/4xx.yaml'
$ref#upsert: './responses/20x-upsert.yaml'
/ccdevice/{storeid}/{id}:
get:
tags:
- ccdevice
description: Return the ccdevice with given id
operationId: loadCCDevice
security:
- bearerAuth: []
parameters:
- $ref#storeid: './parameters/storeid.yaml'
- $ref#id: './parameters/objectid.yaml'
responses:
$ref#4xx: './responses/4xx.yaml'
200:
description: ccdevice detail
content:
application/json:
schema:
type: object
properties:
value:
$ref: '#/components/schemas/CCDevice'
delete:
tags:
- ccdevice
description: Delete a ccdevice with given id
operationId: deleteCCDevice
security:
- bearerAuth: []
parameters:
- $ref#storeid: './parameters/storeid.yaml'
- $ref#id: './parameters/objectid.yaml'
responses:
$ref#4xx: './responses/4xx.yaml'
$ref#204: './responses/204.yaml'