Update api docs to add missing parameters

* Adds metadata to server create req body
* Adds extra_specs to flavor create req body
* Adds disabled to flavor create/list/get/patch req/resp body

Change-Id: I484461303e6b49e59f4f85ed73ac57e8557772dd
This commit is contained in:
Zhenguo Niu 2017-06-20 20:01:07 +08:00
parent 9f0b8ba520
commit 260361c5f4
8 changed files with 23 additions and 1 deletions

View File

@ -38,6 +38,7 @@ Response
- created_at: created_at
- updated_at: updated_at
- is_public: flavor_is_public
- disabled: flavor_disabled
- extra_specs: flavor_extra_specs
**Example List flavors**
@ -67,7 +68,9 @@ Request
- name: flavor_name
- description: flavor_description
- extra_specs: flavor_extra_specs
- is_public: flavor_is_public_not_required
- disabled: flavor_disabled
**Example Create Flavor**
@ -86,6 +89,7 @@ Response
- created_at: created_at
- updated_at: updated_at
- is_public: flavor_is_public
- disabled: flavor_disabled
- extra_specs: flavor_extra_specs
**Example Create flavor**
@ -135,6 +139,7 @@ Response
- created_at: created_at
- updated_at: updated_at
- is_public: flavor_is_public
- disabled: flavor_disabled
- extra_specs: flavor_extra_specs
**Example Update flavor**
@ -172,6 +177,7 @@ Response
- created_at: created_at
- updated_at: updated_at
- is_public: flavor_is_public
- disabled: flavor_disabled
- extra_specs: flavor_extra_specs
**Example Show Flavor Details**

View File

@ -148,6 +148,12 @@ flavor_description:
in: body
required: true
type: string
flavor_disabled:
description: |
Whether or not the flavor has been administratively disabled.
in: body
required: false
type: boolean
flavor_extra_specs:
description: |
Extra spec key and value pairs associate with the flavor.

View File

@ -1,5 +1,9 @@
{
"name": "test_flavor",
"description": "this is a test flavor",
"is_public": true
"extra_specs": {
"capabilities": "boot_mode:bios"
},
"is_public": true,
"disabled": true
}

View File

@ -15,5 +15,6 @@
"updated_at": null,
"extra_specs": {},
"is_public": true,
"disabled": true,
"name": "test_flavor"
}

View File

@ -15,5 +15,6 @@
"updated_at": null,
"extra_specs": {},
"is_public": true,
"disabled": false,
"name": "test_flavor"
}

View File

@ -15,5 +15,6 @@
"updated_at": null,
"extra_specs": {},
"is_public": false,
"disabled": false,
"name": "updated_flavor"
}

View File

@ -19,6 +19,7 @@
"key": "value"
},
"is_public": true,
"disabled": false,
"name": "new_test1"
},
{
@ -38,6 +39,7 @@
"updated_at": null,
"extra_specs": {},
"is_public": true,
"disabled": false,
"name": "new_test2"
}
]

View File

@ -39,6 +39,7 @@ Request
- networks.net_id: network_uuid
- networks.port_type: network_port_type
- networks.port_id: port_uuid
- metadata: metadata
- user_data: user_data
- personality: personality
- key_name: key_name