Merge branch 'feature/api-documentation-fixes' of github.com:Xylakant/gitlabhq into fixes/api
Conflicts: doc/api/projects.md
This commit is contained in:
commit
43d7596030
2 changed files with 35 additions and 14 deletions
|
@ -65,7 +65,8 @@ Return values:
|
|||
|
||||
### Get single project
|
||||
|
||||
Get a specific project, identified by project ID, which is owned by the authentication user.
|
||||
Get a specific project, identified by project ID or NAME, which is owned by the authentication user.
|
||||
Currently namespaced projects cannot retrieved by name.
|
||||
|
||||
```
|
||||
GET /projects/:id
|
||||
|
@ -73,7 +74,7 @@ GET /projects/:id
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
|
||||
```json
|
||||
{
|
||||
|
@ -132,7 +133,20 @@ Return values:
|
|||
+ `404 Not Found` if something else fails
|
||||
|
||||
|
||||
### List project members
|
||||
## Project access levels
|
||||
|
||||
The project access levels are defined in the `user_project` class. Currently, 4
|
||||
levels are recoginized:
|
||||
|
||||
```
|
||||
GUEST = 10
|
||||
REPORTER = 20
|
||||
DEVELOPER = 30
|
||||
MASTER = 40
|
||||
```
|
||||
|
||||
|
||||
## List project team members
|
||||
|
||||
Get a list of project team members.
|
||||
|
||||
|
@ -142,7 +156,7 @@ GET /projects/:id/members
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `query` - Query string
|
||||
|
||||
Return Values:
|
||||
|
@ -163,7 +177,7 @@ GET /projects/:id/members/:user_id
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `user_id` (required) - The ID of a user
|
||||
|
||||
```json
|
||||
|
@ -196,7 +210,7 @@ POST /projects/:id/members
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `user_id` (required) - The ID of a user to add
|
||||
+ `access_level` (required) - Project access level
|
||||
|
||||
|
@ -219,7 +233,7 @@ PUT /projects/:id/members/:user_id
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `user_id` (required) - The ID of a team member
|
||||
+ `access_level` (required) - Project access level
|
||||
|
||||
|
@ -242,7 +256,7 @@ DELETE /projects/:id/members/:user_id
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `user_id` (required) - The ID of a team member
|
||||
|
||||
Return Values:
|
||||
|
@ -269,7 +283,7 @@ GET /projects/:id/hooks
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
|
||||
Return values:
|
||||
|
||||
|
@ -288,7 +302,7 @@ GET /projects/:id/hooks/:hook_id
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `hook_id` (required) - The ID of a project hook
|
||||
|
||||
```json
|
||||
|
@ -315,7 +329,7 @@ POST /projects/:id/hooks
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `url` (required) - The hook URL
|
||||
|
||||
Return values:
|
||||
|
@ -336,7 +350,7 @@ PUT /projects/:id/hooks/:hook_id
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `hook_id` (required) - The ID of a project hook
|
||||
+ `url` (required) - The hook URL
|
||||
|
||||
|
@ -359,7 +373,7 @@ DELETE /projects/:id/hooks/:hook_id
|
|||
|
||||
Parameters:
|
||||
|
||||
+ `id` (required) - The ID of a project
|
||||
+ `id` (required) - The ID or NAME of a project
|
||||
+ `hook_id` (required) - The ID of hook to delete
|
||||
|
||||
Return values:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue