aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--umosapi/api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/umosapi/api.py b/umosapi/api.py
index 57ae00a..9379a55 100644
--- a/umosapi/api.py
+++ b/umosapi/api.py
@@ -34,7 +34,7 @@ class fieldsDict(fields.Raw):
__schema_example__ = {"key": "token"}
-user_model = api.model('UObject', {
+uobject_model = api.model('UObject', {
'datas': fieldsDict(
required=False,
description='Datas of the uobject in JSON format',
@@ -55,7 +55,7 @@ class Objects(Resource):
@api.route("/objects/register")
class Register(Resource):
- @api.expect(user_model)
+ @api.expect(uobject_model)
def post(self):
""" Register new uobject """
args = request.get_json(force=True)
@@ -69,7 +69,7 @@ class Register(Resource):
@api.route("/objects/<_id>")
class Update(Resource):
- @api.expect(user_model)
+ @api.expect(uobject_model)
def patch(self, _id):
""" Edit an uobject. """
args = request.get_json(force=True)