--- title: registry full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## registry-create ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Minimum length: `1` Value in: `"selfHosted" | "cloud"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/registry.create" \ -d '{ "registryName": "string", "username": "string", "password": "string", "registryUrl": "string", "registryType": "selfHosted", "imagePrefix": "string" }' ``` ```js fetch("http://localhost:3000/api/registry.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## registry-remove ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/registry.remove" \ -d '{ "registryId": "string" }' ``` ```js fetch("http://localhost:3000/api/registry.remove", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## registry-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Minimum length: `1` Minimum length: `1` Minimum length: `1` Value in: `"selfHosted" | "cloud"` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/registry.update" \ -d '{ "registryId": "string", "registryName": "string", "imagePrefix": "string", "username": "string", "password": "string", "registryUrl": "string", "createdAt": "string", "registryType": "selfHosted", "adminId": "string" }' ``` ```js fetch("http://localhost:3000/api/registry.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## registry-all ### Authorization "} required={true}> In: `header` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/registry.all" ``` ```js fetch("http://localhost:3000/api/registry.all", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## registry-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/registry.one?registryId=string" ``` ```js fetch("http://localhost:3000/api/registry.one?registryId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## registry-testRegistry ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Minimum length: `1` Value in: `"selfHosted" | "cloud"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/registry.testRegistry" \ -d '{ "registryName": "string", "username": "string", "password": "string", "registryUrl": "string", "registryType": "selfHosted", "imagePrefix": "string" }' ``` ```js fetch("http://localhost:3000/api/registry.testRegistry", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## registry-enableSelfHostedRegistry ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Minimum length: `1` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/registry.enableSelfHostedRegistry" \ -d '{ "registryUrl": "string", "username": "string", "password": "string" }' ``` ```js fetch("http://localhost:3000/api/registry.enableSelfHostedRegistry", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```