Skip to content
Snippets Groups Projects
Commit da040fc1 authored by Sebastian Ziebell's avatar Sebastian Ziebell
Browse files

API documentation expanded with status code information

Information to return codes added to projects and users documentation.
parent beb00af0
No related branches found
No related tags found
1 merge request!2835Fix API return codes
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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.
Loading
Loading
@@ -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
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment