-
State changed as build OD-7079 is successful
-
OneDev
changed state to 'Closed' 5 months ago
Previous Value Current Value Open
Closed
| Type |
Improvement
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Issue Votes (0)
Right now the response is like this:
This is because the method is almost identical to the one backing
/users/{userId}:https://code.onedev.io/onedev/server/~files/1d89b28896e4b46bfb35e2c8e57010a2c761a62a/server-core/src/main/java/io/onedev/server/rest/resource/UserResource.java?position=source-103-132
An API user that wants to get its own ID has to use the
/users/ids/{name}endpoint with the name provided by theusers/meone.I believe we should, instead, include the ID in the response that is sent by the
users/meendpoint. Maybe the/users/{userId}one as well.