Trailing slash in Actions API causes wrong API to be called

While using the Management API for Actions, I discovered that the get all API: /api/v2/actions/actions when used with a trailing slash as /api/v2/actions/actions/ throws a 404. I assume the trailng slash causes it to be interpreted it as get one API /api/v2/actions/actions/{id} with empty string as ID.

Ideally, from I expect would be that trailing slash at end of URL does not cause API to behave differently.


Hi @DesignrKnight,

Welcome back to the Auth0 Community!

I’ll pass this along to the team. Thanks for the report!

Here is what they said:

The position is quite clear that the two URIs are different resources and that the current behavior is as intended. In other words, this is not a bug. That some backend frameworks and routing libraries treat these as identical is unfortunate because it can create the expectation that such URIs refer to the same thing.