--- title: redis full: true --- import { Root, API, APIInfo, APIExample, Responses, Response, ResponseTypes, ExampleResponse, TypeScriptResponse, Property, ObjectCollapsible, Requests, Request } from "fumadocs-ui/components/api"; ## redis-create ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Default: `"redis:8"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.create" \ -d '{ "name": "string", "appName": "string", "databasePassword": "string", "dockerImage": "redis:8", "projectId": "string", "description": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.create", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-one ### Authorization "} required={true}> In: `header` ### Query Parameters | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X GET "http://localhost:3000/api/redis.one?redisId=string" ``` ```js fetch("http://localhost:3000/api/redis.one?redisId=string", { method: "GET" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-start ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.start" \ -d '{ "redisId": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.start", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-reload ### 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/redis.reload" \ -d '{ "redisId": "string", "appName": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.reload", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-stop ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.stop" \ -d '{ "redisId": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.stop", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-saveExternalPort ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.saveExternalPort" \ -d '{ "redisId": "string", "externalPort": 0 }' ``` ```js fetch("http://localhost:3000/api/redis.saveExternalPort", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-deploy ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.deploy" \ -d '{ "redisId": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.deploy", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-changeStatus ### Authorization "} required={true}> In: `header` ### Request Body Value in: `"idle" | "running" | "done" | "error"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.changeStatus" \ -d '{ "redisId": "string", "applicationStatus": "idle" }' ``` ```js fetch("http://localhost:3000/api/redis.changeStatus", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-remove ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.remove" \ -d '{ "redisId": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.remove", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-saveEnvironment ### Authorization "} required={true}> In: `header` ### Request Body | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.saveEnvironment" \ -d '{ "redisId": "string", "env": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.saveEnvironment", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ``` ## redis-update ### Authorization "} required={true}> In: `header` ### Request Body Minimum length: `1` Minimum length: `1` Minimum length: `1` Default: `"redis:8"` Value in: `"idle" | "running" | "done" | "error"` | Status code | Description | | ----------- | ----------- | | `200` | Successful response | | `default` | Error response | ```bash curl -X POST "http://localhost:3000/api/redis.update" \ -d '{ "redisId": "string", "name": "string", "appName": "string", "description": "string", "databasePassword": "string", "dockerImage": "redis:8", "command": "string", "env": "string", "memoryReservation": 0, "memoryLimit": 0, "cpuReservation": 0, "cpuLimit": 0, "externalPort": 0, "createdAt": "string", "applicationStatus": "idle", "projectId": "string" }' ``` ```js fetch("http://localhost:3000/api/redis.update", { method: "POST" }); ``` ```json { "message": "string", "code": "string", "issues": [ { "message": "string" } ] } ``` ```ts export interface Response { message: string; code: string; issues?: { message: string; }[]; } ```