mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
DELETE endpoint added
This commit is contained in:
parent
2c0198ef78
commit
46e552d034
@ -880,11 +880,13 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
|||||||
'_entity' => [
|
'_entity' => [
|
||||||
'methods' => [
|
'methods' => [
|
||||||
Request::METHOD_POST => true,
|
Request::METHOD_POST => true,
|
||||||
Request::METHOD_PATCH => true
|
Request::METHOD_PATCH => true,
|
||||||
|
Request::METHOD_DELETE => true,
|
||||||
],
|
],
|
||||||
'roles' => [
|
'roles' => [
|
||||||
Request::METHOD_POST => 'ROLE_USER',
|
Request::METHOD_POST => 'ROLE_USER',
|
||||||
Request::METHOD_PATCH => 'ROLE_USER'
|
Request::METHOD_PATCH => 'ROLE_USER',
|
||||||
|
Request::METHOD_DELETE => 'ROLE_USER',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'relationship-by-person' => [
|
'relationship-by-person' => [
|
||||||
|
@ -1702,6 +1702,28 @@ paths:
|
|||||||
description: "OK"
|
description: "OK"
|
||||||
422:
|
422:
|
||||||
description: "Object with validation errors"
|
description: "Object with validation errors"
|
||||||
|
delete:
|
||||||
|
tags:
|
||||||
|
- relationships
|
||||||
|
summary: "Remove the relationship"
|
||||||
|
parameters:
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: The relationship's id
|
||||||
|
schema:
|
||||||
|
type: integer
|
||||||
|
format: integer
|
||||||
|
minimum: 1
|
||||||
|
responses:
|
||||||
|
401:
|
||||||
|
description: "Unauthorized"
|
||||||
|
404:
|
||||||
|
description: "Not found"
|
||||||
|
200:
|
||||||
|
description: "OK"
|
||||||
|
422:
|
||||||
|
description: "object with validation errors"
|
||||||
|
|
||||||
|
|
||||||
/1.0/relations/relation.json:
|
/1.0/relations/relation.json:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user