diff options
author | Stan Hu <stanhu@gmail.com> | 2015-12-12 22:02:05 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-12-24 07:57:13 -0800 |
commit | 5a8c65b508614dd8896ff8af7cad6e2b33fb7244 (patch) | |
tree | c0b86bbbbc15b74829ba2e97d8b3014d42b4bb9c /doc | |
parent | 1a23af485cd755738f4051e04132b1eb93fc3fab (diff) | |
download | gitlab-ce-5a8c65b508614dd8896ff8af7cad6e2b33fb7244.tar.gz |
Add API support for looking up a user by username
Needed to support Huboard
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/users.md | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/doc/api/users.md b/doc/api/users.md index 7ba2db248ff..66d2fd52526 100644 --- a/doc/api/users.md +++ b/doc/api/users.md @@ -90,7 +90,17 @@ GET /users You can search for users by email or username with: `/users?search=John` -Also see `def search query` in `app/models/user.rb`. +In addition, you can lookup users by username: + +``` +GET /users?username=:username +``` + +For example: + +``` +GET /users?username=jack_smith +``` ## Single user |