Add remaining routes to create and update item meta data

This commit is contained in:
Eike Kettner
2020-06-11 22:28:31 +02:00
parent a4d60c0d92
commit 363eb81aff
3 changed files with 167 additions and 2 deletions

View File

@ -1194,6 +1194,28 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
post:
tags: [ Item ]
summary: Create and set the correspondent person of an item.
description: |
Creates a new person and updates the correspondent person of
an item.
security:
- authTokenHeader: []
parameters:
- $ref: "#/components/parameters/id"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Person"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
/sec/item/{id}/concPerson:
put:
tags: [ Item ]
@ -1216,6 +1238,28 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
post:
tags: [ Item ]
summary: Create and set the concerning person of an item.
description: |
Creates a new person and updates the concerning person of an
item.
security:
- authTokenHeader: []
parameters:
- $ref: "#/components/parameters/id"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Person"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
/sec/item/{id}/concEquipment:
put:
tags: [ Item ]
@ -1238,6 +1282,28 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
post:
tags: [ Item ]
summary: Create and set a new the concering equipment of an item.
description: |
Creates a new equipment and sets it as the concering equipment
of an item.
security:
- authTokenHeader: []
parameters:
- $ref: "#/components/parameters/id"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Equipment"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
/sec/item/{id}/notes:
put:
tags: [ Item ]