Skip to content

Commit 57d009d

Browse files
authored
Merge pull request #159 from fdegiuli/patch-1
Add before_marshmallow hook to POST handler
2 parents 46e43d8 + 0d625e6 commit 57d009d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

flask_rest_jsonapi/resource.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def post(self, *args, **kwargs):
148148
json_data = request.get_json() or {}
149149

150150
qs = QSManager(request.args, self.schema)
151+
152+
self.before_marshmallow(args, kwargs)
151153

152154
schema = compute_schema(self.schema,
153155
getattr(self, 'post_schema_kwargs', dict()),

0 commit comments

Comments
 (0)