Content
View differences
Updated by Markus Kahl over 9 years ago
**As an** API v3 user
**I want** to be able to refer to users both by ID and login
**so that** I don’t have to lookup an ID by login in order to be able to query a user.
Given a user with the login “j.doe” with ID 4 the following to URLs will be equivalent with this change:
- https://community.openproject.com/api/v3/users/4
- https://community.openproject.com/api/v3/users/j.doe
Doesn’t use friendly\_id due to issues with STI if not configured for the various descendants of User. This also does not change any other lookups (e.g, for the UserController).
[PR](https://github.com/opf/openproject/pull/5122) https://github.com/opf/openproject/pull/5122
**I want** to be able to refer to users both by ID and login
**so that** I don’t have to lookup an ID by login in order to be able to query a user.
Given a user with the login “j.doe” with ID 4 the following to URLs will be equivalent with this change:
- https://community.openproject.com/api/v3/users/4
- https://community.openproject.com/api/v3/users/j.doe
Doesn’t use friendly\_id due to issues with STI if not configured for the various descendants of User. This also does not change any other lookups (e.g, for the UserController).
[PR](https://github.com/opf/openproject/pull/5122)