diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2019-04-16 11:16:52 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-04-18 19:00:48 -0500 |
commit | 1dd4a007804fa0e6ea00a00805d08808f6c0be3a (patch) | |
tree | 09a6b2520dfea63090b3375f02f36724639951e2 /doc/api/projects.md | |
parent | 86be4a6f466205b415de74330dd495a2e8b3c9d0 (diff) | |
download | gitlab-ce-1dd4a007804fa0e6ea00a00805d08808f6c0be3a.tar.gz |
Adds namespace information to project endpoint39858-add-group-owned-info-to-projects-api
- Namespace now return avatar_url and web_url
- NamespaceBasic entity was modified to include avatar_url and web_url,
information is fetched differently depending if the Namespace is a user
or a group
Includes documentation changes
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39858
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 0a950352ecf..951961e45ff 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -494,7 +494,9 @@ GET /projects/:id "name": "Diaspora", "path": "diaspora", "kind": "group", - "full_path": "diaspora" + "full_path": "diaspora", + "avatar_url": "http://localhost:3000/uploads/group/avatar/3/foo.jpg", + "web_url": "http://localhost:3000/groups/diaspora" }, "import_status": "none", "import_error": null, @@ -561,6 +563,8 @@ GET /projects/:id } ``` +**Note**: The `web_url` and `avatar_url` attributes on `namespace` were [introduced][ce-27427] in GitLab 11.11. + If the project is a fork, and you provide a valid token to authenticate, the `forked_from_project` field will appear in the response. @@ -1587,3 +1591,4 @@ GET /projects/:id/snapshot [eep]: https://about.gitlab.com/pricing/ "Available only in GitLab Premium" [ee-6137]: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6137 +[ce-27427]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/27427 |