Skip to content

fix: skip openapi webhooks when generating routes #7175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

alexndlm
Copy link
Contributor

Q A
Branch? main
Tickets
License MIT
Doc PR

@soyuka
Copy link
Member

soyuka commented May 26, 2025

I'm not sure I understand, shouldn't the webhook be available as a route? I'm not a huge fan of the responsibility here, the OpenApi specification should not define routes but it's the other way around.

@alexndlm
Copy link
Contributor Author

Webhooks should be visible only in the documentation. The application is responsible for sending them to consumers. Of course, if you have no plans somehow to integrate the sending of webhooks into the API platform.

@soyuka
Copy link
Member

soyuka commented May 26, 2025

Indeed it's actually not a route, could you target 4.1 though as this is a bug fix?

@soyuka soyuka changed the title fix(symfony, laravel) skip webhooks when generates routing fix: skip webhooks when generating routes May 26, 2025
@soyuka soyuka changed the title fix: skip webhooks when generating routes fix: skip openapi webhooks when generating routes May 26, 2025
@alexndlm alexndlm force-pushed the feature/remove-webhooks-from-routing branch from 2063025 to ffaac64 Compare May 26, 2025 13:33
@alexndlm alexndlm changed the base branch from main to 4.1 May 26, 2025 13:33
@alexndlm alexndlm force-pushed the feature/remove-webhooks-from-routing branch from ffaac64 to 40f49cf Compare May 26, 2025 13:34
@alexndlm
Copy link
Contributor Author

Done.

@soyuka soyuka merged commit 4bdfd60 into api-platform:4.1 Jun 2, 2025
93 of 94 checks passed
@soyuka
Copy link
Member

soyuka commented Jun 2, 2025

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants