add 'tags' in request body of projects

first, add 'tags' in request body of projects when create
and update.
second, put necessary parameter 'name'in first place when
create and update for convenience.

Change-Id: I46a20c3e36dc47db3ec20d39da9036f19e5e4e5c
This commit is contained in:
wangqiangbj 2018-01-25 14:40:04 +08:00
parent 48486544f3
commit 92db2475d3
2 changed files with 11 additions and 2 deletions

View File

@ -1277,6 +1277,13 @@ project_parent_id_response_body:
required: true
type: string
min_version: 3.4
project_tags_request_body:
description: |
A list of simple strings assigned to a project.
Tags can be used to classify projects into groups.
in: body
required: false
type: array
projects:
description: |
A list of ``project`` objects, each containing:

View File

@ -119,12 +119,13 @@ Parameters
.. rest_parameters:: parameters.yaml
- project: project
- name: project_name_request_body
- is_domain: is_domain_request_body
- description: project_description_request_body
- domain_id: project_domain_id_request_body
- enabled: project_enabled_request_body
- name: project_name_request_body
- parent_id: project_parent_id_request_body
- tags: project_tags_request_body
Examples
~~~~~~~~
@ -264,11 +265,12 @@ Parameters
- project_id: project_id_path
- project: project
- name: project_name_update_request_body
- is_domain: is_domain_request_body
- description: project_description_request_body
- domain_id: project_domain_id_update_request_body
- enabled: project_enabled_update_request_body
- name: project_name_update_request_body
- tags: project_tags_request_body
Example
~~~~~~~