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