Delete

Prerequisite to test following examples is to have an API key with permissions:

Path Methods ACL
/resources/news\.article POST off
/resources/news\.article/[0-9a-fA-F]{24} GET, DELETE off

Document

Example API request creates a document:

curl -H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'api-key: <YOUR_API_KEY_SECURE_ID>' \
-H 'application-id: <YOUR_APPLICATION_ID>' \
-d '
{
  "data": {
    "type": "news.article"
  }
}' \
-X POST https://api.jazer.io/resources/news.article

A document is deleted issuing DELETE method on document path: /resources/<DOCUMENT_TYPE>/<DOCUMENT_ID>.

curl -H 'Accept: application/vnd.api+json' \
-H 'api-key: <YOUR_API_KEY_SECURE_ID>' \
-H 'application-id: <YOUR_APPLICATION_ID>' \
-X DELETE https://api.jazer.io/resources/news.article/<NEWS_ARTICLE_ID>

API request fetching a deleted document:

curl -H 'Accept: application/vnd.api+json' \
-H 'api-key: <YOUR_API_KEY_SECURE_ID>' \
-H 'application-id: <YOUR_APPLICATION_ID>' \
-X GET https://api.jazer.io/resources/news.article/<NEWS_ARTICLE_ID>

Returns response like:

{
  "data": null
}