You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/greetings route in a freshly scaffolded application produces 404 error #3003
API Platform version(s) affected: Installer 10.0.4
Description
The example resource Greetings is behaving strangely. Only one route /greetings is generated for this resource and accessing it results in the below 404 error. The provide function is never called.
When prompted use jsonld as format and swagger for the UI. These options shouldn't really matter.
Then run the container cd bookshop-api/api && docker compose up --wait and go to http://localhost/greetings.jsonld
Additional Context
The Greetings class defines two operations Get and GetCollection but only specifies a provider for the GetCollection operation. Since there is no URI-variable defined in the Get operation, it generates the same route /greetings as the GetCollection operation.
I think this example should either omit the Get operation or add a uriTemplate: '/greeting' for this operation so it produces a separate API route. Although this would still create a route that only generates a 404 error.
Activity