summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-25 11:23:29 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-25 11:23:29 +0000
commit92bc7038475104bad30a63fa324d9f1fd0836ce7 (patch)
tree1c5acf52ea74deadd4fd51243b05f390b6762008 /doc
parentb1b5b2218fc7dc9b26c6375163f3a9fbd32f85c5 (diff)
parent5a8c65b508614dd8896ff8af7cad6e2b33fb7244 (diff)
downloadgitlab-ce-92bc7038475104bad30a63fa324d9f1fd0836ce7.tar.gz
Merge branch 'support-api-lookup-by-username' into 'master'
Add API support for looking up a user by username Needed to support Huboard See merge request !2089
Diffstat (limited to 'doc')
-rw-r--r--doc/api/users.md12
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