implementing POST-request input validation for shipcalls. Creating many tests and applying slight updates to the Notifier (not implemented yet)
This commit is contained in:
parent
e85c994692
commit
b38cec3a37
@ -41,6 +41,9 @@ def PostShipcalls():
|
||||
try:
|
||||
content = request.get_json(force=True)
|
||||
loadedModel = model.ShipcallSchema().load(data=content, many=False, partial=True)
|
||||
logging.log(20, loadedModel)
|
||||
logging.log(20, "dev. above: loaded model, below: content")
|
||||
logging.log(20, content)
|
||||
|
||||
# read the user data from the JWT token (set when login is performed)
|
||||
user_data = check_jwt()
|
||||
|
||||
Reference in New Issue
Block a user