api-sig/guidelines/links.rst
Everett Toews 2b3ac7c12e A guideline for links
Change-Id: I0b69ed5d52b347684e9eed768600ce04bab51853
Closes-Bug: 1562058
2016-08-25 11:55:59 -05:00

968 B

Links

Links to other resources often need to be represented in responses. There is already a well established format for this representation in JSON Hyper-Schema: Hypertext definitions for JSON Schema. This is already the prevailing representation in use by a number of prominent OpenStack projects and also in use by the errors guideline.

Note

Before inventing a new value for rel, please check the existing Link Relations for something you can reuse.

{
  "links": [
    {
      "rel": "help",
      "href": "http://developer.openstack.org/api-ref/compute/#create-server"
    }
  ]
}