summaryrefslogtreecommitdiff
path: root/ironic/api/controllers/link.py
diff options
context:
space:
mode:
authorRuby Loo <rloo@yahoo-inc.com>2014-07-10 12:38:38 -0400
committerRuby Loo <rloo@yahoo-inc.com>2014-07-10 12:38:38 -0400
commitec78868ee0c8d8cfdbb88e17bfb9c82c68c40b0a (patch)
tree710d432d91e0341c512da2ee38742d295481584f /ironic/api/controllers/link.py
parent3cf57238b7717f95b357cf1b08f901ed79a62464 (diff)
downloadironic-ec78868ee0c8d8cfdbb88e17bfb9c82c68c40b0a.tar.gz
Update webapi doc with link and console
http://docs.openstack.org/developer/ironic/webapi/v1.html is updated as follows: - changes the path descriptor of NodeStates to use '(node_uuid)' instead of '<uuid>' to be consistent with other paths - adds [GET/PUT] /v1/nodes/(node_uuid)/states/console to show how to access the node's console - fixes the "Links" section so that Link information is shown Change-Id: I9d4a32550b81bb5ccf2fa23d8b591d8a945c04cc
Diffstat (limited to 'ironic/api/controllers/link.py')
-rw-r--r--ironic/api/controllers/link.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ironic/api/controllers/link.py b/ironic/api/controllers/link.py
index ca98bdae4..46e9dcc86 100644
--- a/ironic/api/controllers/link.py
+++ b/ironic/api/controllers/link.py
@@ -49,3 +49,10 @@ class Link(base.APIBase):
href = build_url(resource, resource_args,
bookmark=bookmark, base_url=url)
return Link(href=href, rel=rel_name, type=type)
+
+ @classmethod
+ def sample(cls):
+ sample = cls(href="http://localhost:6385/chassis/"
+ "eaaca217-e7d8-47b4-bb41-3f99f20eed89",
+ rel="bookmark")
+ return sample