summaryrefslogtreecommitdiff
path: root/doc/api/projects.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r--doc/api/projects.md35
1 files changed, 16 insertions, 19 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md
index fdedf904a3a..411286750f8 100644
--- a/doc/api/projects.md
+++ b/doc/api/projects.md
@@ -10,13 +10,12 @@ GET /projects
[
{
"id": 3,
- "code": "rails",
"name": "rails",
"description": null,
- "path": "rails",
"default_branch": "master",
"owner": {
"id": 1,
+ "username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"blocked": false,
@@ -31,13 +30,12 @@ GET /projects
},
{
"id": 5,
- "code": "gitlab",
"name": "gitlab",
"description": null,
- "path": "gitlab",
"default_branch": "api",
"owner": {
"id": 1,
+ "username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"blocked": false,
@@ -63,18 +61,17 @@ GET /projects/:id
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
```json
{
"id": 5,
- "code": "gitlab",
"name": "gitlab",
"description": null,
- "path": "gitlab",
"default_branch": "api",
"owner": {
"id": 1,
+ "username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"blocked": false,
@@ -100,8 +97,6 @@ POST /projects
Parameters:
+ `name` (required) - new project name
-+ `code` (optional) - new project code, uses project name if not set
-+ `path` (optional) - new project path, uses project name if not set
+ `description` (optional) - short project description
+ `default_branch` (optional) - 'master' by default
+ `issues_enabled` (optional) - enabled by default
@@ -122,7 +117,8 @@ GET /projects/:id/members
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
++ `query` - Query string
## Get project team member
@@ -134,13 +130,14 @@ GET /projects/:id/members/:user_id
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `user_id` (required) - The ID of a user
```json
{
"id": 1,
+ "username": "john_smith",
"email": "john@example.com",
"name": "John Smith",
"blocked": false,
@@ -159,7 +156,7 @@ POST /projects/:id/members
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `user_id` (required) - The ID of a user to add
+ `access_level` (required) - Project access level
@@ -175,7 +172,7 @@ PUT /projects/:id/members/:user_id
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `user_id` (required) - The ID of a team member
+ `access_level` (required) - Project access level
@@ -191,7 +188,7 @@ DELETE /projects/:id/members/:user_id
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `user_id` (required) - The ID of a team member
Status code `200` will be returned on success.
@@ -206,7 +203,7 @@ GET /projects/:id/hooks
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
Will return hooks with status `200 OK` on success, or `404 Not found` on fail.
@@ -220,7 +217,7 @@ GET /projects/:id/hooks/:hook_id
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `hook_id` (required) - The ID of a project hook
Will return hook with status `200 OK` on success, or `404 Not found` on fail.
@@ -235,7 +232,7 @@ POST /projects/:id/hooks
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `url` (required) - The hook URL
Will return status `201 Created` on success, or `404 Not found` on fail.
@@ -250,7 +247,7 @@ PUT /projects/:id/hooks/:hook_id
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `hook_id` (required) - The ID of a project hook
+ `url` (required) - The hook URL
@@ -267,7 +264,7 @@ DELETE /projects/:id/hooks
Parameters:
-+ `id` (required) - The ID or code name of a project
++ `id` (required) - The ID of a project
+ `hook_id` (required) - The ID of hook to delete
Will return status `200 OK` on success, or `404 Not found` on fail.