Delete An Entity
To soft delete an entity, we need to make the following HTTP request
Last updated
To soft delete an entity, we need to make the following HTTP request
DELETE /api/v1/{entity-type}/{id}
entity-type*
String
The type of entity to modify
entity-id*
String
The ID of entity to modify
content-type*
String
Set to application/json
authorization
String
Set to Bearer {access-token} if roles in Schema is not anonymous. Else token can be empty
cURL
curl --location \
--request 'DELETE' \
--header 'content-type: application/json' \
--header 'authorization: Bearer {access-token}' \
'{registry-url}/api/v1/Teacher/{id}'HTTPie
{registry-url}is usually http://localhost:{port}. The port can be found under theregistrysection in thedocker-compose.ymlfile and is usually8081.
Last updated
http DELETE \
'{registry_url}/api/v1/Teacher/{id}' \
'content-type: application/json' \
'authorization: Bearer {access-token}'