Feature #40907: mgr/dashboard: REST API improvements
mgr/dashboard: REST API: HATEOAS support (linking)
HATEOAS or RMM level 3 API describes relationships between resources and links, so it allows a client to navigate across resources just by following their specified Links.Example:
/roo@t resource a client gets the list of child resources (e.g.:/cluster@).
- From there (
/cluster) they get a list of subordinate resources: (/cluster/hosts@,
- From the list of hosts they can go the a specific host "example.com" and get their OSDs (
- If the list of OSDs include more than the pagination limit (e.g.: 10), the response is limited to 10 OSDs, but a link to the next paginated (
Link: </cluster/hosts/example.com/osds/?page=1>; rel="next").
An API supporting HATEOAS can be browsed by HATEOAS compliant client.