Right now the response is like this:
{ "disabled" : true, "type" : "ORDINARY", "name" : "string", "fullName" : "string", "notifyOwnEvents" : true }
This is because the method is almost identical to the one backing /users/{userId}:
/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 the users/me one.
/users/ids/{name}
users/me
I believe we should, instead, include the ID in the response that is sent by the users/me endpoint. Maybe the /users/{userId} one as well.
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.