Add route to create and associate correspondent org

This commit is contained in:
Eike Kettner
2020-06-11 22:04:08 +02:00
parent 459647f83f
commit c6accca0ff
3 changed files with 53 additions and 0 deletions

View File

@ -1150,6 +1150,28 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
post:
tags: [ Item ]
summary: Set a new correspondent organization of an item.
description: |
Create a new organization and update the correspondent
organization of an item.
security:
- authTokenHeader: []
parameters:
- $ref: "#/components/parameters/id"
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Organization"
responses:
200:
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/BasicResult"
/sec/item/{id}/corrPerson:
put:
tags: [ Item ]