Open ddorian opened 12 months ago
Patch coverage: 37.50%
and project coverage change: -0.56%
:warning:
Comparison is base (
d57a6fb
) 99.88% compared to head (bfdff3d
) 99.32%. Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@lafrech
What about an api like:
class SchemaClass(marshmallow.Schema):
"""Doc used as request description"""
pass
class Blueprint2(flask_smorest.Blueprint):
def register_webhook(SchemaClass, optional[tags, description, response, etc]):
self.webhooks.append(webhook)
class Api2(flask_smorest.Api):
def register_blueprint():
super()
# register webhooks
for webhook in blp.webhooks:
self.add_webhook_to_doc(class, tags, etc)
Thanks for contributing and sorry about the delay.
I don't use webhooks myself and I don't when I'll have the time to look into this seriously.
Let's keep this open and anyone interested in the feature is welcome to join.
This is a draft to ask for opinion. @lafrech