diff options
author | Thomas Duval <thomas.duval@orange.com> | 2018-03-01 20:09:39 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2018-03-01 20:19:51 +0100 |
commit | e07cfdce2ad7b6fb1e1857aea47ab7ffcb663eab (patch) | |
tree | 8adc89b39310d8344e6c3f49e29d3bcbae56d046 /moon_manager/moon_manager/api/policies.py | |
parent | dbd38cc0f28257772580d42905d2d398fc1d1705 (diff) |
Add information about which API attribute is important or not.
In other terms, which attribute must be tested or not.
Change-Id: I81d4270a41353aa1ec958aff74ee741e9d172fbc
Diffstat (limited to 'moon_manager/moon_manager/api/policies.py')
-rw-r--r-- | moon_manager/moon_manager/api/policies.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/moon_manager/moon_manager/api/policies.py b/moon_manager/moon_manager/api/policies.py index 0d7a52a9..3447beb1 100644 --- a/moon_manager/moon_manager/api/policies.py +++ b/moon_manager/moon_manager/api/policies.py @@ -40,8 +40,8 @@ class Policies(Resource): "policy_id1": { "name": "...", "model_id": "...", - "genre": "...", - "description": "...", + "genre": "... (optional)", + "description": "... (optional)", } } :internal_api: get_policies @@ -63,15 +63,15 @@ class Policies(Resource): :request body: { "name": "...", "model_id": "...", - "genre": "...", - "description": "...", + "genre": "... (optional)", + "description": "... (optional)", } :return: { "policy_id1": { "name": "...", "model_id": "...", - "genre": "...", - "description": "...", + "genre": "... (optional)", + "description": "... (optional)", } } :internal_api: add_policy @@ -93,7 +93,7 @@ class Policies(Resource): :param user_id: user ID who do the request :return: { "result": "True or False", - "message": "optional message" + "message": "optional message (optional)" } :internal_api: delete_policy """ @@ -115,8 +115,8 @@ class Policies(Resource): "policy_id1": { "name": "...", "model_id": "...", - "genre": "...", - "description": "...", + "genre": "... (optional)", + "description": "... (optional)", } } :internal_api: update_policy |