kiolyn-api-specs
Version:
65 lines (64 loc) • 1.59 kB
YAML
/shopitem:
get:
tags:
- shopItem
description: Return all the shop items belong to given store
operationId: listShopItems
security:
- bearerAuth: []
responses:
$ref#4xx: './responses/4xx.yaml'
200:
description: list of shop items
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ShopItem'
post:
tags:
- shopItem
description: Update/Create shop item
operationId: saveShopItem
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ShopItem'
responses:
$ref#4xx: './responses/4xx.yaml'
$ref#upsert: './responses/20x-upsert.yaml'
/shopitem/{id}:
get:
tags:
- shopItem
description: Return the shop item with given id
operationId: loadShopItem
security:
- bearerAuth: []
parameters:
- $ref#id: './parameters/objectid.yaml'
responses:
$ref#4xx: './responses/4xx.yaml'
200:
description: shop item detail
content:
application/json:
schema:
$ref: '#/components/schemas/ShopItem'
delete:
tags:
- shopItem
description: Delete a shop item with given id
operationId: deleteShopItem
security:
- bearerAuth: []
parameters:
- $ref#id: './parameters/objectid.yaml'
responses:
$ref#4xx: './responses/4xx.yaml'
$ref#204: './responses/204.yaml'