OSDN Git Service

API documentation expanded with status code information
authorSebastian Ziebell <sebastian.ziebell@asquera.de>
Mon, 18 Feb 2013 10:15:26 +0000 (11:15 +0100)
committerSebastian Ziebell <sebastian.ziebell@asquera.de>
Mon, 18 Feb 2013 10:15:26 +0000 (11:15 +0100)
Information to return codes added to projects and users documentation.

doc/api/projects.md
doc/api/users.md

index d37d3ac..1652191 100644 (file)
@@ -57,6 +57,11 @@ GET /projects
 ]
 ```
 
+Return values:
+
++ `200 Ok` on success and a list of projects
++ `401 Unauthorized` if the user is not allowed to access projects
+
 
 ### Get single project
 
index b94d7c0..e589363 100644 (file)
@@ -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