Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Merge requests
  • !8890

Merged
Created Mar 01, 2015 by Administrator@rootOwner

Expose avatar_url in projects API

  • Overview 14
  • Commits 1
  • Changes 7

Created by: sue445

Add avatar_url to response of project API

For using avatar url from third party tools (ex. chrome-gitlab-notifier 😅)

example

curl -s http://localhost:3000/api/v3/projects/h5bp%2Fhtml5-boilerplate?private_token=xxxxxxxxxxxx | jq .
{
  "id": 8,
  "description": "Dolorem eum deserunt qui dolorum quia sapiente.",
  "default_branch": "master",
  "public": false,
  "archived": false,
  "visibility_level": 10,
  "ssh_url_to_repo": "sue445@localhost:h5bp/html5-boilerplate.git",
  "http_url_to_repo": "http://localhost:3000/h5bp/html5-boilerplate.git",
  "web_url": "http://localhost:3000/h5bp/html5-boilerplate",
  "name": "Html5 Boilerplate",
  "name_with_namespace": "H5bp / Html5 Boilerplate",
  "path": "html5-boilerplate",
  "path_with_namespace": "h5bp/html5-boilerplate",
  "issues_enabled": true,
  "merge_requests_enabled": true,
  "wiki_enabled": true,
  "snippets_enabled": false,
  "created_at": "2015-02-26T23:29:50.000Z",
  "last_activity_at": "2015-02-26T23:36:45.000Z",
  "namespace": {
    "id": 5,
    "name": "H5bp",
    "path": "h5bp",
    "owner_id": null,
    "created_at": "2015-02-26T23:29:50.000Z",
    "updated_at": "2015-02-26T23:29:50.000Z",
    "description": "Voluptatem cumque cupiditate suscipit.",
    "avatar": {
      "url": null
    }
  },
  "avatar_url": "http://localhost:3000/uploads/project/avatar/8/avatar.png",
  "permissions": {
    "project_access": null,
    "group_access": {
      "access_level": 50,
      "notification_level": 3
    }
  }
}
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/sue445/feature/project_api_avatar_url