{ "opencollection": "1.0.0", "info": { "name": "GitLab access_requests snippets API", "version": "v4" }, "items": [ { "info": { "name": "snippets", "type": "folder" }, "items": [ { "info": { "name": "getApiV4ProjectsIdSnippets", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/projects/:id/snippets", "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" } ] }, "docs": "Get all project snippets" }, { "info": { "name": "postApiV4ProjectsIdSnippets", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v4/projects/:id/snippets", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" } ] }, "docs": "Create a new project snippet" }, { "info": { "name": "getApiV4ProjectsIdSnippetsSnippetId", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/projects/:id/snippets/:snippet_id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "snippet_id", "value": "", "type": "path", "description": "The ID of a project snippet" } ] }, "docs": "Get a single project snippet" }, { "info": { "name": "putApiV4ProjectsIdSnippetsSnippetId", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v4/projects/:id/snippets/:snippet_id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "snippet_id", "value": "", "type": "path", "description": "The ID of a project snippet" } ] }, "docs": "Update an existing project snippet" }, { "info": { "name": "deleteApiV4ProjectsIdSnippetsSnippetId", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v4/projects/:id/snippets/:snippet_id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "snippet_id", "value": "", "type": "path", "description": "The ID of a project snippet" } ] }, "docs": "Delete a project snippet" }, { "info": { "name": "getApiV4ProjectsIdSnippetsSnippetIdRaw", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/projects/:id/snippets/:snippet_id/raw", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "snippet_id", "value": "", "type": "path", "description": "The ID of a project snippet" } ] }, "docs": "Get a raw project snippet" }, { "info": { "name": "getApiV4ProjectsIdSnippetsSnippetIdFilesRefFilePathRaw", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/projects/:id/snippets/:snippet_id/files/:ref/:file_path/raw", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "file_path", "value": "", "type": "path", "description": "The URL-encoded path to the file, like lib%2Fclass%2Erb" }, { "name": "ref", "value": "", "type": "path", "description": "The name of branch, tag or commit" }, { "name": "snippet_id", "value": "", "type": "path" } ] }, "docs": "Get raw project snippet file contents from the repository" }, { "info": { "name": "getApiV4ProjectsIdSnippetsSnippetIdUserAgentDetail", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/projects/:id/snippets/:snippet_id/user_agent_detail", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID or URL-encoded path of the project" }, { "name": "snippet_id", "value": "", "type": "path", "description": "The ID of a project snippet" } ] }, "docs": "Get the user agent details for a project snippet" }, { "info": { "name": "Get a snippets list for an authenticated user", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/snippets", "params": [ { "name": "created_after", "value": "", "type": "query", "description": "Return snippets created after the specified time" }, { "name": "created_before", "value": "", "type": "query", "description": "Return snippets created before the specified time" }, { "name": "page", "value": "1", "type": "query", "description": "Current page number" }, { "name": "per_page", "value": "20", "type": "query", "description": "Number of items per page" } ] }, "docs": "This feature was introduced in GitLab 8.15." }, { "info": { "name": "Create new snippet", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/v4/snippets" }, "docs": "This feature was introduced in GitLab 8.15." }, { "info": { "name": "List all public personal snippets current_user has access to", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/snippets/public", "params": [ { "name": "created_after", "value": "", "type": "query", "description": "Return snippets created after the specified time" }, { "name": "created_before", "value": "", "type": "query", "description": "Return snippets created before the specified time" }, { "name": "page", "value": "1", "type": "query", "description": "Current page number" }, { "name": "per_page", "value": "20", "type": "query", "description": "Number of items per page" } ] }, "docs": "This feature was introduced in GitLab 8.15." }, { "info": { "name": "List all snippets current_user has access to", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/snippets/all", "params": [ { "name": "created_after", "value": "", "type": "query", "description": "Return snippets created after the specified time" }, { "name": "created_before", "value": "", "type": "query", "description": "Return snippets created before the specified time" }, { "name": "page", "value": "1", "type": "query", "description": "Current page number" }, { "name": "per_page", "value": "20", "type": "query", "description": "Number of items per page" }, { "name": "repository_storage", "value": "", "type": "query", "description": "Filter by repository storage used by the snippet" } ] }, "docs": "This feature was introduced in GitLab 16.3." }, { "info": { "name": "Get a single snippet", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/snippets/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of a snippet" } ] }, "docs": "This feature was introduced in GitLab 8.15." }, { "info": { "name": "Update an existing snippet", "type": "http" }, "http": { "method": "PUT", "url": "{{baseUrl}}/api/v4/snippets/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of a snippet" } ] }, "docs": "This feature was introduced in GitLab 8.15." }, { "info": { "name": "Remove snippet", "type": "http" }, "http": { "method": "DELETE", "url": "{{baseUrl}}/api/v4/snippets/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of a snippet" } ] }, "docs": "This feature was introduced in GitLab 8.15." }, { "info": { "name": "Get a raw snippet", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/snippets/:id/raw", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of a snippet" } ] }, "docs": "This feature was introduced in GitLab 8.15." }, { "info": { "name": "getApiV4SnippetsIdFilesRefFilePathRaw", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/snippets/:id/files/:ref/:file_path/raw", "params": [ { "name": "file_path", "value": "", "type": "path", "description": "The URL-encoded path to the file, like lib%2Fclass%2Erb" }, { "name": "ref", "value": "", "type": "path", "description": "The name of branch, tag or commit" }, { "name": "id", "value": "", "type": "path" } ] }, "docs": "Get raw snippet file contents from the repository" }, { "info": { "name": "getApiV4SnippetsIdUserAgentDetail", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/v4/snippets/:id/user_agent_detail", "params": [ { "name": "id", "value": "", "type": "path", "description": "The ID of a snippet" } ] }, "docs": "Get the user agent details for a snippet" } ] } ], "bundled": true }