Update user roles list API documentation

This commit is contained in:
Wayne Witzel III
2016-04-07 10:36:12 -04:00
parent 547506a3bf
commit 39f05e2f11
2 changed files with 16 additions and 0 deletions

View File

@@ -183,4 +183,8 @@ class RoleMetadata(Metadata):
metadata = super(RoleMetadata, self).determine_metadata(request, view)
if 'actions' in metadata:
metadata['actions'].pop('POST')
metadata['actions']['POST'] = {
"id": {"type": "integer", "label": "ID", "help_text": "Database ID for this role."},
"disassociate": {"type": "integer", "label": "Disassociate", "help_text": "Provide to remove this role."},
}
return metadata