add a patch resource api endpoint (wip)

This commit is contained in:
2022-01-04 19:37:27 +01:00
parent af2eca0d03
commit 4f1540c541
5 changed files with 94 additions and 2 deletions

View File

@@ -752,7 +752,6 @@ paths:
resource:
type: thirdparty
id: 100
responses:
401:
description: "Unauthorized"
@@ -1234,6 +1233,54 @@ paths:
404:
description: "Not found"
/1.0/person/accompanying-period/resource/{id}.json:
patch:
tags:
- accompanying-course-resource
summary: "Alter the resource"
parameters:
- name: id
in: path
required: true
description: The resource's id
schema:
type: integer
format: integer
minimum: 1
requestBody:
description: "A resource"
required: true
content:
application/json:
schema:
type: object
properties:
type:
type: string
enum:
- "accompanying_period_resource"
#id:
# type: integer
comment:
type: string
required:
- type
examples:
Set the resource comment:
value:
type: accompanying_period_resource
#id: 0
comment: my judicious comment
responses:
401:
description: "Unauthorized"
404:
description: "Not found"
200:
description: "OK"
422:
description: "object with validation errors"
/1.0/person/household.json:
get:
tags: