Fix missing role_id

Error was "No path parameter ``role_id`` found in rest_parameter stanza.:

Basically it means that the parameter role_id is used, but not defined in a corresponding yaml file.

Mailing list post on openstack-dev:
http://lists.openstack.org/pipermail/openstack-dev/2017-January/110606.html for reference.

Change-Id: Id5863a70f2432a2ae22164aa66e29ae739ab3e11
This commit is contained in:
Anne Gentle 2017-01-30 15:49:59 -06:00
parent 58823b338c
commit b0e3e8a6a4
3 changed files with 20 additions and 2 deletions

@ -16,7 +16,7 @@ server password.
List the Images List the Images
=============== ===============
.. rest_method:: GET /v3/images/{role_id}/role/{another_id}/role/{some_id}<br>/b/a/x/{image_id.x} .. rest_method:: GET /v3/images/{role_id}/role/{id}/role/{image_id}
Short explanation about this GET method. Short explanation about this GET method.
@ -39,7 +39,10 @@ Response
.. rest_parameters:: parameters.yaml .. rest_parameters:: parameters.yaml
- host: host - host: host
- id: id
- image_id: image_id
- name: name - name: name
- role_id: role_id
Create an Image Create an Image
=============== ===============

@ -4,6 +4,12 @@ id:
type: string type: string
description: | description: |
The id of the service. The id of the service.
image_id:
in: path
required: true
type: string
description: |
The id for the image.
host: host:
in: body in: body
required: true required: true
@ -16,6 +22,13 @@ name:
type: string type: string
description: | description: |
The name of the service. The name of the service.
role_id:
in: body
required: true
type: string
description: |
The unique identifier for the role, which enables defining role assignments
for multiple users in multiple projects.
server.obj: server.obj:
in: body in: body
required: true required: true

@ -51,7 +51,7 @@ root group as the group owner, and allow only user and group read access
List the Servers List the Servers
================ ================
.. rest_method:: GET /v3/servers/{role_id}/role/{another_id}/role/{some_id} .. rest_method:: GET /v3/servers/{role_id}/role
Short explanation about this GET method. Short explanation about this GET method.
@ -75,6 +75,7 @@ Response
- host: host - host: host
- name: name - name: name
- role_id: role_id
Copy the Server Copy the Server
@ -92,6 +93,7 @@ Response
- host: host - host: host
- name: name - name: name
- role_id: role_id
Change or Update the Servers Change or Update the Servers