Glue Resource creates wrong method

LukasB
lukas.bruecklmeier@unic.com Posts: 29 ✨ - Novice
I'm currently creating a Backend Glue API Resource for a post, put and delete endpoint:
/** * {@inheritDoc} * * @api * * @return \Generated\Shared\Transfer\GlueResourceMethodCollectionTransfer */ public function getDeclaredMethods(): GlueResourceMethodCollectionTransfer { return (new GlueResourceMethodCollectionTransfer()) ->setPost( (new GlueResourceMethodConfigurationTransfer()) ->setAction('postAction'), ) ->setPut( (new GlueResourceMethodConfigurationTransfer()) ->setAction('putAction'), ) ->setDelete( (new GlueResourceMethodConfigurationTransfer()) ->setAction('deleteAction'), ); }
However when I check the routes in the console with
glue route:debug Backend -c
I see that the PUT route is named with PUT but the method is GET:
Am I missing something or is there a bug?
0
Answers
-
PUT method isn´t handled ( yet) by the new GlueApi. but PATCH.
2 -
Ah! Great thanks for sharing this information @Hidran Arias :)
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 81 Spryker News
- 961 Developer Corner
- 815 Spryker Development
- 91 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 29 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random