summaryrefslogtreecommitdiff
path: root/doc/api/users.md
diff options
context:
space:
mode:
authorSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-18 11:15:26 +0100
committerSebastian Ziebell <sebastian.ziebell@asquera.de>2013-02-18 11:15:26 +0100
commitda040fc1348eb7747dd18084a2b12967f7c2b759 (patch)
treeee539a72b434d3df3d77ff06bed13bc45443ba42 /doc/api/users.md
parentbeb00af0c16c5b28b60043a6d42e09517ecd2c08 (diff)
downloadgitlab-ce-da040fc1348eb7747dd18084a2b12967f7c2b759.tar.gz
API documentation expanded with status code information
Information to return codes added to projects and users documentation.
Diffstat (limited to 'doc/api/users.md')
-rw-r--r--doc/api/users.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/api/users.md b/doc/api/users.md
index b94d7c0f789..e5893638fdc 100644
--- a/doc/api/users.md
+++ b/doc/api/users.md
@@ -43,6 +43,12 @@ GET /users
]
```
+Return values:
+
++ `200 Ok` on success and a list with all users
++ `401 Unauthorized` if user is not allowed to access the list
+
+
## Single user
Get a single user.
@@ -74,6 +80,13 @@ Parameters:
}
```
+Return values:
+
++ `200 Ok` on success and the user entry
++ `401 Unauthorized` if it is not allowed to access the user
++ `404 Not Found` if the user with ID is not found
+
+
## User creation
Create user. Available only for admin