Hypermedia

(Difference between revisions)
Jump to: navigation, search
Line 29: Line 29:
 
: '''bookmark''' - This is a permalink to the current stable API version of this resource.
 
: '''bookmark''' - This is a permalink to the current stable API version of this resource.
  
[[Category:API]]
+
[[Category:Hostway API]]
 +
[[Category:FlexCloud Server API]]
 +
[[Category:Dynamic DNS API]]
  
 
<!--  THIS CODE ENABLES DISQUS COMMENTS ON THE PAGE - DELETE TO DISABLE COMMENTING-->
 
<!--  THIS CODE ENABLES DISQUS COMMENTS ON THE PAGE - DELETE TO DISABLE COMMENTING-->

Revision as of 17:03, 14 December 2012

Hypermedia is used to describe the relationships between resources. It is suggested that clients use the hypermedia to browse between resources and not build URLs with templates.

JSON

In the JSON representation, the hypermedia is included in the links field of the JSON object.

{
   "links":[
      {
         "href":"http://{server_name}/flavors/{flavor_id}/",
         "rel":"self"
      },
      {
         "href":"http://{server_name}/flavors/{flavor_id}/",
         "rel":"bookmark"
      },
   ]
}


href
The absolute URL of the resource.
rel
Describes the relationship of this resources to the resource at the href URL.
self - This is a link to the full version of this resource. Most listings will give a truncated version of the resource and include a self link.
bookmark - This is a permalink to the current stable API version of this resource.


blog comments powered by Disqus


Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox