Settings

Theme

Using HATEOAS with REST APIs

engineering.3ap.ch

6 points by mnembrini 5 years ago · 1 comment

Reader

AgoRapide 5 years ago

Self promotion: With my library AgoRapide 2020 the client can choose between HTML or JSON, with HTML giving useful links.

An example with Microsoft's Northwind dataset:

http://arnorthwind.agorapide.com/RQ/dt/Employee/1

gives HTML output with helpful links, in this case related EmployeeTerritories and related Orders.

The same query in JSON

http://arnorthwind.agorapide.com/RQ/dt/Employee/1.json

will show data for the Employee only.

This kind of turns the API into a client application, that is, you do not necessarily need to build a user interface on top of the API, it is actually inbuilt in the API.

The main customer support application in a IoT company that I run is just such an API. The customers themselves of course are offered a real app on top of this API, but not having to maintain a dedicated application for the support department is a huge saving.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection