Hi everyone,
I'm making a web api for administration purpose. And the first function is list all users with pagination.
I tried to create route like this https://example.com/v1/users/{page}, it seems fine
But if I need to make a function to get user detail, it will be like https://example.com/v1/users/{user_id} And these 2 routes will be conflict
So I think a good way must be https://example.com/v1/users?page={page} where {page} is an integer.
How can I handle request like that? I tried to create request like that but every from ? is ignored.
Thank you very much