I currently build a restful api with a users
route. Is it more idioatic to use the username or his id as parameter if the username is unique?
Either
example.com/api/users/johndoe
or
example.com/api/users/123456
Furthermore I planed routes for a project
resource. Would it be an inconsistent design, if I require the project-id here?