--- title: gitlab full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## gitlab-create ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/gitlab.create" \ -d '{ "gitlabId": "string", "applicationId": "string", "redirectUri": "string", "secret": "string", "accessToken": "string", "refreshToken": "string", "groupName": "string", "expiresAt": 0, "gitProviderId": "string", "authId": "string", "name": "string" }' ``` ```js fetch("http://localhost:3000/api/gitlab.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## gitlab-one ### Authorization "} required={true}> In: `header` ### Query Parameters Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/gitlab.one?gitlabId=string" ``` ```js fetch("http://localhost:3000/api/gitlab.one?gitlabId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## gitlab-gitlabProviders ### Authorization "} required={true}> In: `header` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/gitlab.gitlabProviders" ``` ```js fetch("http://localhost:3000/api/gitlab.gitlabProviders", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## gitlab-getGitlabRepositories ### Authorization "} required={true}> In: `header` ### Query Parameters Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/gitlab.getGitlabRepositories?gitlabId=string" ``` ```js fetch("http://localhost:3000/api/gitlab.getGitlabRepositories?gitlabId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## gitlab-getGitlabBranches ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/gitlab.getGitlabBranches?id=0&owner=string&repo=string&gitlabId=string" ``` ```js fetch("http://localhost:3000/api/gitlab.getGitlabBranches?id=0&owner=string&repo=string&gitlabId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## gitlab-testConnection ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/gitlab.testConnection" \ -d '{ "gitlabId": "string", "groupName": "string" }' ``` ```js fetch("http://localhost:3000/api/gitlab.testConnection", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## gitlab-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/gitlab.update" \ -d '{ "gitlabId": "string", "applicationId": "string", "redirectUri": "string", "secret": "string", "accessToken": "string", "refreshToken": "string", "groupName": "string", "expiresAt": 0, "gitProviderId": "string", "name": "string" }' ``` ```js fetch("http://localhost:3000/api/gitlab.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```