diff options
author | neodarz <neodarz@neodarz.net> | 2019-07-09 13:23:15 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2019-07-09 13:23:15 +0200 |
commit | 38f5a8e7d0a10d60dace9530c1b2f02dc01fc1b2 (patch) | |
tree | 71093405dd9a19d5e10378c9f8963d486239a161 | |
parent | 0eeb5b788aed5e2b422ad73886754991a4ef9243 (diff) | |
download | umosapi-38f5a8e7d0a10d60dace9530c1b2f02dc01fc1b2.tar.xz umosapi-38f5a8e7d0a10d60dace9530c1b2f02dc01fc1b2.zip |
Fix variable name
-rw-r--r-- | umosapi/api.py | 6 |
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) |