From 806672a4b3f44a45dd82d48d82a480a1d3e51bbb Mon Sep 17 00:00:00 2001 From: Petr Blaho Date: Wed, 13 Aug 2014 15:05:56 +0200 Subject: [PATCH] Modifies API spec to use uuid for Role endpoints Changes adding/removing Role to use role_uuid instead of name/version pair Change-Id: Ic97cde0c59aea641c88a3bb708e698a504544db0 --- specs/juno/tripleo-juno-tuskar-rest-api.rst | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/specs/juno/tripleo-juno-tuskar-rest-api.rst b/specs/juno/tripleo-juno-tuskar-rest-api.rst index 72aa2b3e..2aa86ba8 100644 --- a/specs/juno/tripleo-juno-tuskar-rest-api.rst +++ b/specs/juno/tripleo-juno-tuskar-rest-api.rst @@ -373,15 +373,14 @@ Notes: Request Data: -JSON document containing the name and version of the role to add. +JSON document containing the uuid of the role to add. Request Example: .. code-block:: json { - "name" : "compute", - "version" : "2" + "uuid" : "role_uuid" } Response Codes: @@ -403,11 +402,11 @@ configuration parameters will be present in the result. **Removing a Role from a Plan** -URL: ``/plans//roles///`` +URL: ``/plans//roles//`` Method: ``DELETE`` -Description: Removes a role from the given plan. +Description: Removes a role identified by role_uuid from the given plan. Notes: