Skip to Content
Industrial Internet Application Development
book

Industrial Internet Application Development

by Alena Traukina, Jayant Thomas, Prashant Tyagi, Veera Kishore Reddipalli
September 2018
Intermediate to advanced
412 pages
11h 12m
English
Packt Publishing
Content preview from Industrial Internet Application Development

Deleting a device

If we want to delete a device, essentially we use HTTP DELETE to delete that instance of the device. The response we should get is HTTP 204 No Content, which says that the request has been processed but does not have any content to return.

In the following example, we are deleting a device with the ID 11:

HTTP DELETE --> /iiot/devices/11

HTTP response will be as follows:

204 No Content

The message HTTP 500 Internal Server Error is returned if there is anything wrong with the request. It can be returned for any of the HTTP requests which represent an internal error in the server; these could include any issues, such as an error with servicing the requests.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Industrial Internet of Things

Hands-On Industrial Internet of Things

Giacomo Veneri, Antonio Capasso
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781788298599Supplemental Content