aboutsummaryrefslogtreecommitdiffstats
path: root/moon_manager/moon_manager/api/models.py
diff options
context:
space:
mode:
authorThomas Duval <thomas.duval@orange.com>2018-03-01 20:09:39 +0100
committerThomas Duval <thomas.duval@orange.com>2018-03-01 20:19:51 +0100
commite07cfdce2ad7b6fb1e1857aea47ab7ffcb663eab (patch)
tree8adc89b39310d8344e6c3f49e29d3bcbae56d046 /moon_manager/moon_manager/api/models.py
parentdbd38cc0f28257772580d42905d2d398fc1d1705 (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/models.py')
-rw-r--r--moon_manager/moon_manager/api/models.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/moon_manager/moon_manager/api/models.py b/moon_manager/moon_manager/api/models.py
index 07b10d90..8a5f229c 100644
--- a/moon_manager/moon_manager/api/models.py
+++ b/moon_manager/moon_manager/api/models.py
@@ -38,7 +38,7 @@ class Models(Resource):
:return: {
"model_id1": {
"name": "...",
- "description": "...",
+ "description": "... (optional)",
"meta_rules": ["meta_rule_id1", ]
}
}
@@ -60,13 +60,13 @@ class Models(Resource):
:param user_id: user ID who do the request
:request body: {
"name": "...",
- "description": "...",
+ "description": "... (optional)",
"meta_rules": ["meta_rule_id1", ]
}
:return: {
"model_id1": {
"name": "...",
- "description": "...",
+ "description": "... (optional)",
"meta_rules": ["meta_rule_id1", ]
}
}
@@ -89,7 +89,7 @@ class Models(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_model
"""
@@ -110,7 +110,7 @@ class Models(Resource):
:return: {
"model_id1": {
"name": "...",
- "description": "...",
+ "description": "... (optional)",
"meta_rules": ["meta_rule_id1", ]
}
}