{ "opencollection": "1.0.0", "info": { "name": "GitLab access_requests branches API", "version": "v4" }, "items": [ { "info": { "name": "branches", "type": "folder" }, "items": [ { "info": { "name": "getApiV4ProjectsIdRepositoryBranches", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/projects/:id/repository/branches", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "page", "value": "1", "type": "query", "description": "Current page number" }, { "name": "per_page", "value": "20", "type": "query", "description": "Number of items per page" }, { "name": "search", "value": "", "type": "query", "description": "Return list of branches matching the search criteria" }, { "name": "regex", "value": "", "type": "query", "description": "Return list of branches matching the regex" }, { "name": "sort", "value": "", "type": "query", "description": "Return list of branches sorted by the given field" }, { "name": "page_token", "value": "", "type": "query", "description": "Name of branch to start the pagination from" } ] }, "docs": "Get a project repository branches" }, { "info": { "name": "postApiV4ProjectsIdRepositoryBranches", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v4/projects/:id/repository/branches", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" } ] }, "docs": "Create branch" }, { "info": { "name": "getApiV4ProjectsIdRepositoryBranchesBranch", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/projects/:id/repository/branches/:branch", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "branch", "value": "", "type": "path" } ] }, "docs": "Get a single repository branch" }, { "info": { "name": "deleteApiV4ProjectsIdRepositoryBranchesBranch", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v4/projects/:id/repository/branches/:branch", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "branch", "value": "", "type": "path", "description": "The name of the branch" } ] }, "docs": "Delete a branch" }, { "info": { "name": "headApiV4ProjectsIdRepositoryBranchesBranch", "type": "http" }, "http": { "method": "HEAD", "url": "{{baseUrl}}/api/v4/projects/:id/repository/branches/:branch", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "branch", "value": "", "type": "path", "description": "The name of the branch" } ] }, "docs": "Check if a branch exists" }, { "info": { "name": "putApiV4ProjectsIdRepositoryBranchesBranchProtect", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v4/projects/:id/repository/branches/:branch/protect", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "branch", "value": "", "type": "path", "description": "The name of the branch" } ] }, "docs": "Protect a single branch" }, { "info": { "name": "putApiV4ProjectsIdRepositoryBranchesBranchUnprotect", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v4/projects/:id/repository/branches/:branch/unprotect", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "branch", "value": "", "type": "path", "description": "The name of the branch" } ] }, "docs": "Unprotect a single branch" }, { "info": { "name": "deleteApiV4ProjectsIdRepositoryMergedBranches", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v4/projects/:id/repository/merged_branches", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" } ] }, "docs": "Delete all merged branches" } ] } ], "bundled": true }