Skip to content

Instantly share code, notes, and snippets.

@spicyjack
Created November 28, 2016 21:45
Show Gist options
  • Select an option

  • Save spicyjack/1c916dde13d6da71442689714c0e0442 to your computer and use it in GitHub Desktop.

Select an option

Save spicyjack/1c916dde13d6da71442689714c0e0442 to your computer and use it in GitHub Desktop.

API Codex

API Document URLs

Base API URLs

Users

List all public users in the system

Create new user

Retrieve info about a given user

Update info about an existing user

Delete existing user

Groups

Retrieve all public groups in the system

List all of the users in a given group

Create new group

Retrieve info about a given group

Delete existing group

  • Bitbucket
    • No available API request (must view group info through the web interface)
  • GitHub
    • No available API request (must delete organizations through the web interface)
  • GitLab

Update existing group info

Get a user(s) of a group

Add user(s) to group

Remove user(s) from group

Projects

List all public projects

  • Bitbucket
    • No available API request (no concept of projects)
  • GitHub
    • GitHub doesn't currently have the concept of a "project"
  • GitLab
    • GET /projects/all (admin only)

List projects owned by a specific group

List projects owned by a specific user

Create new project

Retrieve info about a given project

Update info about an existing project

Delete existing project

Repos

Retrieve all public repos

Retrieve all repos (public and private) for a given user/group

Create new repo

Retrieve info about a given repo

Update info about an existing repo

Delete existing repo

Trackers

Retrieve tracker list

  • Bitbucket
  • GitHub
  • GitLab

Create new tracker

  • Bitbucket
  • GitHub
  • GitLab

Get tracker metadata

  • Bitbucket
  • GitHub
  • GitLab

Update tracker metadata

  • Bitbucket
  • GitHub
  • GitLab

Delete tracker

  • Bitbucket
  • GitHub
  • GitLab

Wikis

Retrieve wiki list

  • Bitbucket
  • GitHub
  • GitLab

Create new wiki

  • Bitbucket
  • GitHub
  • GitLab

Get wiki metadata

  • Bitbucket
  • GitHub
  • GitLab

Update wiki metadata

  • Bitbucket
  • GitHub
  • GitLab

Delete wiki

  • Bitbucket
  • GitHub
  • GitLab

Commits

Retrieve list of commits

  • Bitbucket
  • GitHub
  • GitLab

Create new commit

  • Bitbucket
  • GitHub
  • GitLab

Get a specific commmit

  • Bitbucket
  • GitHub
  • GitLab

Update metadata about a specific commit

  • Bitbucket
  • GitHub
  • GitLab

Delete commit

  • Bitbucket
  • GitHub
  • GitLab

Issues

Retrieve total open/closed issues for this repo

Create new issue

  • Bitbucket
  • GitHub
    • GitHub - POST /repos/:owner/:repo/issues
  • GitLab

Retrieve existing issue

  • Bitbucket
  • GitHub
  • GitLab

Update existing issue

  • Bitbucket
  • GitHub
  • GitLab

Delete existing issue

  • Bitbucket
  • GitHub
  • GitLab

Retrieve issue list

(Wiki) Pages

Retrieve list pages for a given wiki

  • Bitbucket
  • GitHub
  • GitLab

Create new wiki page

  • Bitbucket
  • GitHub
  • GitLab

Get a wiki page

  • Bitbucket
  • GitHub
  • GitLab

Update metadata about a specific wiki page

  • Bitbucket
  • GitHub
  • GitLab

Delete wiki page

  • Bitbucket
  • GitHub
  • GitLab

Milestones

Create new milestone

  • Bitbucket
  • GitHub
  • GitLab

Retrieve all milestones

  • Bitbucket
  • GitHub
  • GitLab

Retrieve all issues for a given milestone

  • Bitbucket
  • GitHub
  • GitLab

Update existing milestone

  • Bitbucket
  • GitHub
  • GitLab

Delete existing milestone

  • Bitbucket
  • GitHub
  • GitLab

Attach a milestone to an issue

  • Bitbucket
  • GitHub
  • GitLab

Detatch a milestone from an issue

  • Bitbucket
  • GitHub
  • GitLab

Replace a milestone on an issue

  • Bitbucket
  • GitHub
  • GitLab

vim: filetype=markdown shiftwidth=2 tabstop=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment