DELETE endpoint added

This commit is contained in:
2021-11-09 10:58:08 +01:00
parent 2c0198ef78
commit 46e552d034
2 changed files with 26 additions and 2 deletions

View File

@@ -880,11 +880,13 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'_entity' => [
'methods' => [
Request::METHOD_POST => true,
Request::METHOD_PATCH => true
Request::METHOD_PATCH => true,
Request::METHOD_DELETE => true,
],
'roles' => [
Request::METHOD_POST => 'ROLE_USER',
Request::METHOD_PATCH => 'ROLE_USER'
Request::METHOD_PATCH => 'ROLE_USER',
Request::METHOD_DELETE => 'ROLE_USER',
]
],
'relationship-by-person' => [