| ... | @@ -16,7 +16,7 @@ module Gitlab |
... | @@ -16,7 +16,7 @@ module Gitlab |
|
|
# Get a single project
|
|
# Get a single project
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id
|
|
# GET /projects/:id
|
|
|
get ":id" do
|
|
get ":id" do
|
| ... | @@ -27,7 +27,6 @@ module Gitlab |
... | @@ -27,7 +27,6 @@ module Gitlab |
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# name (required) - name for new project
|
|
# name (required) - name for new project
|
|
|
# code (optional) - code for new project, uses project name if not set
|
|
|
|
|
# path (optional) - path for new project, uses project name if not set
|
|
# path (optional) - path for new project, uses project name if not set
|
|
|
# description (optional) - short project description
|
|
# description (optional) - short project description
|
|
|
# default_branch (optional) - 'master' by default
|
|
# default_branch (optional) - 'master' by default
|
| ... | @@ -56,7 +55,7 @@ module Gitlab |
... | @@ -56,7 +55,7 @@ module Gitlab |
|
|
# Get a project team members
|
|
# Get a project team members
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# query - Query string
|
|
# query - Query string
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/members
|
|
# GET /projects/:id/members
|
| ... | @@ -72,7 +71,7 @@ module Gitlab |
... | @@ -72,7 +71,7 @@ module Gitlab |
|
|
# Get a project team members
|
|
# Get a project team members
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# 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
|
|
# user_id (required) - The ID of a user
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/members/:user_id
|
|
# GET /projects/:id/members/:user_id
|
| ... | @@ -84,7 +83,7 @@ module Gitlab |
... | @@ -84,7 +83,7 @@ module Gitlab |
|
|
# Add a new project team member
|
|
# Add a new project team member
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# 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
|
|
# user_id (required) - The ID of a user
|
|
|
# access_level (required) - Project access level
|
|
# access_level (required) - Project access level
|
|
|
# Example Request:
|
|
# Example Request:
|
| ... | @@ -107,7 +106,7 @@ module Gitlab |
... | @@ -107,7 +106,7 @@ module Gitlab |
|
|
# Update project team member
|
|
# Update project team member
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# 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
|
|
# user_id (required) - The ID of a team member
|
|
|
# access_level (required) - Project access level
|
|
# access_level (required) - Project access level
|
|
|
# Example Request:
|
|
# Example Request:
|
| ... | @@ -127,7 +126,7 @@ module Gitlab |
... | @@ -127,7 +126,7 @@ module Gitlab |
|
|
# Remove a team member from project
|
|
# Remove a team member from project
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# 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
|
|
# user_id (required) - The ID of a team member
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# DELETE /projects/:id/members/:user_id
|
|
# DELETE /projects/:id/members/:user_id
|
| ... | @@ -140,7 +139,7 @@ module Gitlab |
... | @@ -140,7 +139,7 @@ module Gitlab |
|
|
# Get project hooks
|
|
# Get project hooks
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/hooks
|
|
# GET /projects/:id/hooks
|
|
|
get ":id/hooks" do
|
|
get ":id/hooks" do
|
| ... | @@ -152,7 +151,7 @@ module Gitlab |
... | @@ -152,7 +151,7 @@ module Gitlab |
|
|
# Get a project hook
|
|
# Get a project hook
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# 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
|
|
# hook_id (required) - The ID of a project hook
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/hooks/:hook_id
|
|
# GET /projects/:id/hooks/:hook_id
|
| ... | @@ -165,7 +164,7 @@ module Gitlab |
... | @@ -165,7 +164,7 @@ module Gitlab |
|
|
# Add hook to project
|
|
# Add hook to project
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# url (required) - The hook URL
|
|
# url (required) - The hook URL
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# POST /projects/:id/hooks
|
|
# POST /projects/:id/hooks
|
| ... | @@ -182,7 +181,7 @@ module Gitlab |
... | @@ -182,7 +181,7 @@ module Gitlab |
|
|
# Update an existing project hook
|
|
# Update an existing project hook
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# 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
|
|
# hook_id (required) - The ID of a project hook
|
|
|
# url (required) - The hook URL
|
|
# url (required) - The hook URL
|
|
|
# Example Request:
|
|
# Example Request:
|
| ... | @@ -203,7 +202,7 @@ module Gitlab |
... | @@ -203,7 +202,7 @@ module Gitlab |
|
|
# Delete project hook
|
|
# Delete project hook
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# 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
|
|
# hook_id (required) - The ID of hook to delete
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# DELETE /projects/:id/hooks
|
|
# DELETE /projects/:id/hooks
|
| ... | @@ -216,7 +215,7 @@ module Gitlab |
... | @@ -216,7 +215,7 @@ module Gitlab |
|
|
# Get a project repository branches
|
|
# Get a project repository branches
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/repository/branches
|
|
# GET /projects/:id/repository/branches
|
|
|
get ":id/repository/branches" do
|
|
get ":id/repository/branches" do
|
| ... | @@ -226,7 +225,7 @@ module Gitlab |
... | @@ -226,7 +225,7 @@ module Gitlab |
|
|
# Get a single branch
|
|
# Get a single branch
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# branch (required) - The name of the branch
|
|
# branch (required) - The name of the branch
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/repository/branches/:branch
|
|
# GET /projects/:id/repository/branches/:branch
|
| ... | @@ -238,7 +237,7 @@ module Gitlab |
... | @@ -238,7 +237,7 @@ module Gitlab |
|
|
# Get a project repository tags
|
|
# Get a project repository tags
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/repository/tags
|
|
# GET /projects/:id/repository/tags
|
|
|
get ":id/repository/tags" do
|
|
get ":id/repository/tags" do
|
| ... | @@ -248,7 +247,7 @@ module Gitlab |
... | @@ -248,7 +247,7 @@ module Gitlab |
|
|
# Get a project repository commits
|
|
# Get a project repository commits
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# ref_name (optional) - The name of a repository branch or tag
|
|
# ref_name (optional) - The name of a repository branch or tag
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/repository/commits
|
|
# GET /projects/:id/repository/commits
|
| ... | @@ -266,7 +265,7 @@ module Gitlab |
... | @@ -266,7 +265,7 @@ module Gitlab |
|
|
# Get a project snippets
|
|
# Get a project snippets
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/snippets
|
|
# GET /projects/:id/snippets
|
|
|
get ":id/snippets" do
|
|
get ":id/snippets" do
|
| ... | @@ -276,7 +275,7 @@ module Gitlab |
... | @@ -276,7 +275,7 @@ module Gitlab |
|
|
# Get a project snippet
|
|
# Get a project snippet
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# snippet_id (required) - The ID of a project snippet
|
|
# snippet_id (required) - The ID of a project snippet
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/snippets/:snippet_id
|
|
# GET /projects/:id/snippets/:snippet_id
|
| ... | @@ -288,7 +287,7 @@ module Gitlab |
... | @@ -288,7 +287,7 @@ module Gitlab |
|
|
# Create a new project snippet
|
|
# Create a new project snippet
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# title (required) - The title of a snippet
|
|
# title (required) - The title of a snippet
|
|
|
# file_name (required) - The name of a snippet file
|
|
# file_name (required) - The name of a snippet file
|
|
|
# lifetime (optional) - The expiration date of a snippet
|
|
# lifetime (optional) - The expiration date of a snippet
|
| ... | @@ -314,7 +313,7 @@ module Gitlab |
... | @@ -314,7 +313,7 @@ module Gitlab |
|
|
# Update an existing project snippet
|
|
# Update an existing project snippet
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# snippet_id (required) - The ID of a project snippet
|
|
# snippet_id (required) - The ID of a project snippet
|
|
|
# title (optional) - The title of a snippet
|
|
# title (optional) - The title of a snippet
|
|
|
# file_name (optional) - The name of a snippet file
|
|
# file_name (optional) - The name of a snippet file
|
| ... | @@ -340,7 +339,7 @@ module Gitlab |
... | @@ -340,7 +339,7 @@ module Gitlab |
|
|
# Delete a project snippet
|
|
# Delete a project snippet
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# snippet_id (required) - The ID of a project snippet
|
|
# snippet_id (required) - The ID of a project snippet
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# DELETE /projects/:id/snippets/:snippet_id
|
|
# DELETE /projects/:id/snippets/:snippet_id
|
| ... | @@ -354,7 +353,7 @@ module Gitlab |
... | @@ -354,7 +353,7 @@ module Gitlab |
|
|
# Get a raw project snippet
|
|
# Get a raw project snippet
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# snippet_id (required) - The ID of a project snippet
|
|
# snippet_id (required) - The ID of a project snippet
|
|
|
# Example Request:
|
|
# Example Request:
|
|
|
# GET /projects/:id/snippets/:snippet_id/raw
|
|
# GET /projects/:id/snippets/:snippet_id/raw
|
| ... | @@ -367,7 +366,7 @@ module Gitlab |
... | @@ -367,7 +366,7 @@ module Gitlab |
|
|
# Get a raw file contents
|
|
# Get a raw file contents
|
|
|
#
|
|
#
|
|
|
# Parameters:
|
|
# Parameters:
|
|
|
# id (required) - The ID or code name of a project
|
|
# id (required) - The ID of a project
|
|
|
# sha (required) - The commit or branch name
|
|
# sha (required) - The commit or branch name
|
|
|
# filepath (required) - The path to the file to display
|
|
# filepath (required) - The path to the file to display
|
|
|
# Example Request:
|
|
# Example Request:
|
| ... | |
... | |
| ... | | ... | |