Skip to content

Regex does not allow using similar endpoints with and without variable #105

Closed
@marbetschar

Description

@marbetschar

The problem I'm facing right now is the following:

I've got the following REST endpoints:
/users/{userId}
/users/profile
/users/logout

As in the /users/{branchId} the second part is defined as variable, the /users/profile and the /users/logout wont work. I think this is not the expected behaviour, since these endpoints are explicity defined. For sure, there can't be a user with an id of "profile" or "logout" - but I think this is a design decision which is up to the one who is developing the REST API itself.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions