API Change Tutorial doc code modify

The refactor of code cause the inappropriate guide.
Code in tutorial is out of date.

Change-Id: Ic986af1072f158f0f0f5608a9754db9d3e507409
Closes-Bug: #1597196
This commit is contained in:
guoshan 2016-06-29 15:12:14 +08:00 committed by Dave Chen
parent 5583cd1df0
commit 4db765198d
1 changed files with 3 additions and 14 deletions

View File

@ -155,20 +155,9 @@ representation or not. Role create and role update schemas are available at
You will need to update their properties to include a `description` attribute::
role_create = {
'properties': {
'name': parameter_types.name,
'description': parameter_types.description
}
...
}
role_update = {
'properties': {
'name': parameter_types.name,
'description': parameter_types.description
}
...
_role_properties = {
'name': parameter_types.name,
'description': parameter_types.description
}
Besides doing the entity validation using such schemas, controllers pass and