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:
Max Metz 2024-04-29 16:46:50 +02:00
parent e85c994692
commit b38cec3a37

View File

@ -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()