Checking for the presence of an object: the HEAD method¶
Checking for the presence of the object is carried out by the method HEAD
, with the class code with its namespace and the value of the object key, for example rest/crud/class_string@develop-and-test/66dbb3d0-5583-11e6-aef7-cf50314f026b
curl -X HEAD -u demo@local:ion-demo https://dnt.iondv.com/rest/crud/class_string@develop-and-test/66dbb3d0-5583-11e6-aef7-cf50314f026b
An example of a request to the crud service to check the presence of an object in dnt: test/modules/rest/crud.spec.js
/Checking crud service/HEAD/# checking if an object is present (HEAD)
If the object exists, the response code “200”is returned, if the object is not found - 404
, if there are no permissions - 403
.