The API endpoint should be descriptive

The endpoint of the API should be self-descriptive and should use HTTP methods such as GET, PUT, POST, and DELETE to perform the operations. In addition, the API should leverage the HTTP codes such as 200, 4xx, to describe operations or faults. Let's use an example for illustration. In this example, we will design an API that gets the list of IIoT devices and does operations such as adding a new device, updating the device details, and deleting a device:

An example API endpoint

Get Industrial Internet Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.