Delete An Entity

To soft delete an entity, we need to make the following HTTP request

Deleting an Entity

DELETE /api/v1/{entity-type}/{id}

Path Parameters

NameTypeDescription

entity-type*

String

The type of entity to modify

entity-id*

String

The ID of entity to modify

Headers

NameTypeDescription

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

Usage

cURL

curl --location \
	 --request 'DELETE' \
	 --header 'content-type: application/json' \
	 --header 'authorization: Bearer {access-token}' \
	 '{registry-url}/api/v1/Teacher/{id}'

HTTPie

http DELETE \
	'{registry_url}/api/v1/Teacher/{id}' \
	'content-type: application/json' \
	'authorization: Bearer {access-token}'

{registry-url} is usually http://localhost:{port}. The port can be found under the registry section in the docker-compose.yml file and is usually 8081.

Last updated