- Issue created by @Alina Basarabeanu
- Status changed to Closed: won't fix
almost 2 years ago 1:28pm 16 March 2023
Using the super admin user role trying to access an entity get route (e.g. /bat_api/bat_event/273) I get the following message:
"The used authentication method is not allowed on this route."
Investigating what the route is expecting as access and permission I couldn't find a route for the entityGet service definition.
The ServiceEndpoint routes() function generates a route per Service Plugin.
Still, because EntityGet, EntityDelete, EntityPost and EntityPut services have the same path we end up with only one route as services.endpoint.bat_api.entity_put.bat_event
for the "/bat_api/bat_event/{bat_event}" which is the last plugin running in the foreach loop.
So, trying to access /bat_api/bat_event/{bat_event} will always fail.
Define a unique path per ServiceDefination inside the Entity Deriver classes
Closed: won't fix
Code