Commit d529c8f6 authored by Mathieu Parent's avatar Mathieu Parent

Update json for "Get single project" doc

parent 32bbb52c
...@@ -483,95 +483,88 @@ GET /projects/:id ...@@ -483,95 +483,88 @@ GET /projects/:id
```json ```json
{ {
"id": 3, "id": 26,
"description": null, "description": "My amazing project",
"name": "myproject",
"name_with_namespace": "mygroup / myproject",
"path": "myproject",
"path_with_namespace": "mygroup/myproject",
"created_at": "2019-06-27T12:32:51.444Z",
"default_branch": "master", "default_branch": "master",
"visibility": "private",
"ssh_url_to_repo": "git@example.com:diaspora/diaspora-project-site.git",
"http_url_to_repo": "http://example.com/diaspora/diaspora-project-site.git",
"web_url": "http://example.com/diaspora/diaspora-project-site",
"readme_url": "http://example.com/diaspora/diaspora-project-site/blob/master/README.md",
"tag_list": [ "tag_list": [
"example", "topic1",
"disapora project" "topic2"
], ],
"owner": { "ssh_url_to_repo": "git@gitlab.example.com:mygroup/myproject.git",
"id": 3, "http_url_to_repo": "http://gitlab.example.com/mygroup/myproject.git",
"name": "Diaspora", "web_url": "http://gitlab.example.com/mygroup/myproject",
"created_at": "2013-09-30T13:46:02Z" "readme_url": "http://gitlab.example.com/mygroup/myproject/blob/master/README.md",
}, "avatar_url": null,
"name": "Diaspora Project Site", "star_count": 0,
"name_with_namespace": "Diaspora / Diaspora Project Site", "forks_count": 0,
"path": "diaspora-project-site", "last_activity_at": "2019-06-27T12:32:51.444Z",
"path_with_namespace": "diaspora/diaspora-project-site",
"issues_enabled": true,
"open_issues_count": 1,
"merge_requests_enabled": true,
"jobs_enabled": true,
"wiki_enabled": true,
"snippets_enabled": false,
"resolve_outdated_diff_discussions": false,
"container_registry_enabled": false,
"created_at": "2013-09-30T13:46:02Z",
"last_activity_at": "2013-09-30T13:46:02Z",
"creator_id": 3,
"namespace": { "namespace": {
"id": 3, "id": 23,
"name": "Diaspora", "name": "mygroup",
"path": "diaspora", "path": "mygroup",
"kind": "group", "kind": "group",
"full_path": "diaspora", "full_path": "mygroup",
"avatar_url": "http://localhost:3000/uploads/group/avatar/3/foo.jpg", "parent_id": null,
"web_url": "http://localhost:3000/groups/diaspora" "avatar_url": null,
}, "web_url": "http://gitlab.example.com/groups/mygroup"
"import_status": "none",
"import_error": null,
"permissions": {
"project_access": {
"access_level": 10,
"notification_level": 3
}, },
"group_access": { "_links": {
"access_level": 50, "self": "http://gitlab.example.com/api/v4/projects/26",
"notification_level": 3 "issues": "http://gitlab.example.com/api/v4/projects/26/issues",
} "merge_requests": "http://gitlab.example.com/api/v4/projects/26/merge_requests",
"repo_branches": "http://gitlab.example.com/api/v4/projects/26/repository/branches",
"labels": "http://gitlab.example.com/api/v4/projects/26/labels",
"events": "http://gitlab.example.com/api/v4/projects/26/events",
"members": "http://gitlab.example.com/api/v4/projects/26/members"
}, },
"empty_repo": false,
"archived": false, "archived": false,
"avatar_url": "http://example.com/uploads/project/avatar/3/uploads/avatar.png", "visibility": "private",
"license_url": "http://example.com/diaspora/diaspora-client/blob/master/LICENSE", "resolve_outdated_diff_discussions": false,
"license": { "container_registry_enabled": true,
"key": "lgpl-3.0", "issues_enabled": true,
"name": "GNU Lesser General Public License v3.0", "merge_requests_enabled": true,
"nickname": "GNU LGPLv3", "wiki_enabled": true,
"html_url": "http://choosealicense.com/licenses/lgpl-3.0/", "jobs_enabled": true,
"source_url": "http://www.gnu.org/licenses/lgpl-3.0.txt" "snippets_enabled": true,
},
"shared_runners_enabled": true, "shared_runners_enabled": true,
"forks_count": 0, "lfs_enabled": true,
"star_count": 0, "creator_id": 1,
"runners_token": "b8bc4a7a29eb76ea83cf79e4908c2b", "import_status": "none",
"import_error": null,
"open_issues_count": 0,
"runners_token": "sQewQBDHAMkqnMFVXzuW",
"ci_default_git_depth": 50, "ci_default_git_depth": 50,
"public_jobs": true, "public_jobs": true,
"ci_config_path": null,
"shared_with_groups": [ "shared_with_groups": [
{
"group_id": 4,
"group_name": "Twitter",
"group_full_path": "twitter",
"group_access_level": 30
},
{ {
"group_id": 3, "group_id": 3,
"group_name": "Gitlab Org", "group_name": "test",
"group_full_path": "gitlab-org", "group_full_path": "test",
"group_access_level": 10 "group_access_level": 30,
"expires_at": null
} }
], ],
"repository_storage": "default", "repository_storage": "default",
"only_allow_merge_if_pipeline_succeeds": false, "only_allow_merge_if_pipeline_succeeds": false,
"only_allow_merge_if_all_discussions_are_resolved": false,
"printing_merge_requests_link_enabled": true,
"request_access_enabled": false, "request_access_enabled": false,
"only_allow_merge_if_all_discussions_are_resolved": false,
"printing_merge_request_link_enabled": true,
"merge_method": "merge", "merge_method": "merge",
"external_authorization_classification_label": null,
"permissions": {
"project_access": null,
"group_access": {
"access_level": 50,
"notification_level": 3
}
},
"statistics": { "statistics": {
"commit_count": 37, "commit_count": 37,
"storage_size": 1038090, "storage_size": 1038090,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment