diff --git a/ereuse_devicehub/resources/deliverynote/views.py b/ereuse_devicehub/resources/deliverynote/views.py index 4a390381..ae3e56d3 100644 --- a/ereuse_devicehub/resources/deliverynote/views.py +++ b/ereuse_devicehub/resources/deliverynote/views.py @@ -47,3 +47,8 @@ class DeliverynoteView(View): setattr(dlvnote, key, value) db.session.commit() return Response(status=204) + + def one(self, id: uuid.UUID): + """Get one delivery note""" + deliverynote = Deliverynote.query.filter_by(id=id).one() # type Deliverynote + return self.schema.jsonify(Deliverynote)