Closed MrM0nkey closed 8 years ago
This feature is finished. It handles DELETE requests for URL /api/v1/servers/:server_id/zones/:zone_name/cryptokeys/:cryptokey_id . It Deletes a key from :zone_name specified by :cryptokey_id.
Server Answers:
Case 1: zone_name not found
The server returns 404 Not Found
Case 2: the backend returns true on removal. This means the key is gone.
The server returns 200 No Content
Case 3: the backend returns false on removal. An error occoured.
The sever returns 422 Unknown Status with message "Could not DELETE :cryptokey_id"
Feature
This feature should delete cryptokeys by their id.
The link leads to the TODO in the api_spec.md from pdns repo.
For protocol guidelines i would recommand this:
DELETE specification