Unique route path

Created on 10 March 2023, almost 2 years ago
Updated 16 March 2023, almost 2 years ago

Problem/Motivation

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.

Proposed resolution

Define a unique path per ServiceDefination inside the Entity Deriver classes

🐛 Bug report
Status

Closed: won't fix

Component

Code

Created by

🇬🇧United Kingdom Alina Basarabeanu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024