Skip to content
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

Delete attribute should support the POST HTTP method #967

Open
shochdoerfer opened this issue Jan 7, 2025 · 0 comments
Open

Delete attribute should support the POST HTTP method #967

shochdoerfer opened this issue Jan 7, 2025 · 0 comments

Comments

@shochdoerfer
Copy link

Resource bundle version affected: v1.12.0

Description
While experimenting with Sylius Stack, I realized that the Delete attribute in the resource bundle exposes the route only for the DELETE HTTP method.

The Bootstrap Admin UI templates include a form with the POST method for deleting entries, see here. Thus, by default I am not able to delete resources via the UI. Unless I patch the code or manually add the route myself.

Possible Solution
While I understand why the attributes follow the HTTP standards and work as they work, I think it makes sense to extend the Delete attribute with an additional flag also to expose the POST route. Thus the attribute would by default follow the HTTP standards but could be configured also to expose a POST route if needed.

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

No branches or pull requests

1 participant