core icon indicating copy to clipboard operation
core copied to clipboard

feat: add webhook - openapi

Open alli83 opened this issue 2 years ago • 2 comments

Q A
Branch? main
Tickets
License MIT
Doc PR

Possible to configure a webhook via an attribute:

` #[ApiResource(operations: [

new Post(openapi: new Webhook(name: 'a cute name')
)),
new Get(openapi: new Webhook(
    name: 'a cute name',
    pathItem: new PathItem(
        get: new Operation(
            summary: 'Something else here',
            description: 'Something else here for example',
        ),
    )
)),

] )]` and generate documentation

alli83 avatar Oct 06 '23 12:10 alli83

Nice! Do you think we could add a functional test to features/openapi/docs.feature with a webhook?

soyuka avatar Oct 27 '23 10:10 soyuka

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Feb 16 '24 17:02 stale[bot]