mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
add a patch resource api endpoint (wip)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user