{ "openapi": "3.0.3", "info": { "title": "api", "description": "", "version": "0.1.0", "license": { "name": "" } }, "paths": { "/auth/login/": { "post": { "tags": ["auth"], "operationId": "login", "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthData" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/auth/register/": { "post": { "tags": ["auth"], "operationId": "register", "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthData" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/": { "get": { "tags": ["project"], "operationId": "list_projects", "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": ["id", "name", "userId"], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "userId": { "type": "string", "format": "uuid" } } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "post": { "tags": ["project"], "operationId": "create_project", "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProjectSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "userId"], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "userId": { "type": "string", "format": "uuid" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/": { "get": { "tags": ["project"], "operationId": "get_project", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "userId"], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "userId": { "type": "string", "format": "uuid" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "post": { "tags": ["project"], "operationId": "release_project", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "" }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "delete": { "tags": ["project"], "operationId": "delete_project", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "userId"], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "userId": { "type": "string", "format": "uuid" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "patch": { "tags": ["project"], "operationId": "update_project", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PartialProjectSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "userId"], "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "userId": { "type": "string", "format": "uuid" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/apps/": { "get": { "tags": ["app"], "operationId": "list_apps", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": [ "id", "name", "replicas", "image", "port", "deleted", "projectId" ], "properties": { "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "image": { "type": "string" }, "name": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "privateDomain": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" }, "publicDomain": { "type": "string" }, "replicas": { "type": "integer", "format": "int32" } } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "post": { "tags": ["app"], "operationId": "create_app", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AppServiceSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "replicas", "image", "port", "deleted", "projectId" ], "properties": { "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "image": { "type": "string" }, "name": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "privateDomain": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" }, "publicDomain": { "type": "string" }, "replicas": { "type": "integer", "format": "int32" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/apps/{app_id}/": { "get": { "tags": ["app"], "operationId": "get_app", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "replicas", "image", "port", "deleted", "projectId" ], "properties": { "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "image": { "type": "string" }, "name": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "privateDomain": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" }, "publicDomain": { "type": "string" }, "replicas": { "type": "integer", "format": "int32" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "delete": { "tags": ["app"], "operationId": "delete_app", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "replicas", "image", "port", "deleted", "projectId" ], "properties": { "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "image": { "type": "string" }, "name": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "privateDomain": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" }, "publicDomain": { "type": "string" }, "replicas": { "type": "integer", "format": "int32" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "patch": { "tags": ["app"], "operationId": "update_app", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PartialAppServiceSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "replicas", "image", "port", "deleted", "projectId" ], "properties": { "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "image": { "type": "string" }, "name": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "privateDomain": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" }, "publicDomain": { "type": "string" }, "replicas": { "type": "integer", "format": "int32" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/apps/{app_id}/envs/": { "get": { "tags": ["env"], "operationId": "list_envs", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": ["id", "name", "value", "appId"], "properties": { "appId": { "type": "string", "format": "uuid" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "value": { "type": "string" } } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "post": { "tags": ["env"], "operationId": "create_env", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EnvSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "value", "appId"], "properties": { "appId": { "type": "string", "format": "uuid" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "value": { "type": "string" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/apps/{app_id}/envs/{env_id}/": { "get": { "tags": ["env"], "operationId": "get_env", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "env_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "value", "appId"], "properties": { "appId": { "type": "string", "format": "uuid" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "value": { "type": "string" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "delete": { "tags": ["env"], "operationId": "delete_env", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "env_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "value", "appId"], "properties": { "appId": { "type": "string", "format": "uuid" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "value": { "type": "string" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "patch": { "tags": ["env"], "operationId": "update_env", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "env_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PartialEnvSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": ["id", "name", "value", "appId"], "properties": { "appId": { "type": "string", "format": "uuid" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "value": { "type": "string" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/apps/{app_id}/recover/": { "post": { "tags": ["app"], "operationId": "recover_app", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "replicas", "image", "port", "deleted", "projectId" ], "properties": { "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "image": { "type": "string" }, "name": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "privateDomain": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" }, "publicDomain": { "type": "string" }, "replicas": { "type": "integer", "format": "int32" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/apps/{app_id}/status/": { "get": { "tags": ["app"], "operationId": "get_app_status", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "app_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "text/event-stream": { "schema": { "type": "object", "required": ["available", "state"], "properties": { "available": { "type": "boolean" }, "state": { "$ref": "#/components/schemas/AppReleaseState" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/volumes/": { "get": { "tags": ["volume"], "operationId": "list_volumes", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "required": [ "id", "name", "capacity", "path", "deleted", "projectId" ], "properties": { "appId": { "type": "string", "format": "uuid" }, "capacity": { "type": "integer", "format": "int32" }, "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "path": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" } } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "post": { "tags": ["volume"], "operationId": "create_volume", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VolumeSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "capacity", "path", "deleted", "projectId" ], "properties": { "appId": { "type": "string", "format": "uuid" }, "capacity": { "type": "integer", "format": "int32" }, "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "path": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/volumes/{volume_id}/": { "get": { "tags": ["volume"], "operationId": "get_volume", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "volume_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "capacity", "path", "deleted", "projectId" ], "properties": { "appId": { "type": "string", "format": "uuid" }, "capacity": { "type": "integer", "format": "int32" }, "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "path": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "delete": { "tags": ["volume"], "operationId": "delete_volume", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "volume_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "capacity", "path", "deleted", "projectId" ], "properties": { "appId": { "type": "string", "format": "uuid" }, "capacity": { "type": "integer", "format": "int32" }, "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "path": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } }, "patch": { "tags": ["volume"], "operationId": "update_volume", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "volume_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/PartialVolumeSchema" } } }, "required": true }, "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "capacity", "path", "deleted", "projectId" ], "properties": { "appId": { "type": "string", "format": "uuid" }, "capacity": { "type": "integer", "format": "int32" }, "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "path": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" } } } } } }, "400": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "409": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } }, "/projects/{project_id}/volumes/{volume_id}/recover/": { "delete": { "tags": ["volume"], "operationId": "recover_volume", "parameters": [ { "name": "project_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "volume_id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "", "content": { "application/json": { "schema": { "type": "object", "required": [ "id", "name", "capacity", "path", "deleted", "projectId" ], "properties": { "appId": { "type": "string", "format": "uuid" }, "capacity": { "type": "integer", "format": "int32" }, "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "path": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" } } } } } }, "401": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } }, "404": { "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } } }, "components": { "schemas": { "ApiError": { "oneOf": [ { "type": "object", "required": ["kind"], "properties": { "kind": { "type": "string", "enum": ["BadRequest"] } } }, { "type": "object", "required": ["kind"], "properties": { "kind": { "type": "string", "enum": ["Validation"] } } }, { "type": "object", "required": ["kind"], "properties": { "kind": { "type": "string", "enum": ["AlreadyExists"] } } }, { "type": "object", "required": ["kind"], "properties": { "kind": { "type": "string", "enum": ["NotFound"] } } }, { "type": "object", "required": ["kind"], "properties": { "kind": { "type": "string", "enum": ["Unauthorized"] } } }, { "type": "object", "required": ["kind"], "properties": { "kind": { "type": "string", "enum": ["InternalError"] } } } ] }, "AppReleaseState": { "type": "string", "enum": ["Unknown", "Failed", "Progressing", "Released"] }, "AppService": { "type": "object", "required": [ "id", "name", "replicas", "image", "port", "deleted", "projectId" ], "properties": { "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "image": { "type": "string" }, "name": { "type": "string" }, "port": { "type": "integer", "format": "int32" }, "privateDomain": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" }, "publicDomain": { "type": "string" }, "replicas": { "type": "integer", "format": "int32" } } }, "AppServiceSchema": { "type": "object", "required": [ "name", "replicas", "image", "port", "publicDomain", "privateDomain" ], "properties": { "image": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "port": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 65535 }, "privateDomain": { "$ref": "#/components/schemas/DomainName" }, "publicDomain": { "$ref": "#/components/schemas/DomainName" }, "replicas": { "type": "integer", "format": "int32", "minimum": 0 } } }, "AppStatus": { "type": "object", "required": ["available", "state"], "properties": { "available": { "type": "boolean" }, "state": { "$ref": "#/components/schemas/AppReleaseState" } } }, "AuthData": { "allOf": [ { "$ref": "#/components/schemas/Password" }, { "type": "object", "required": ["username", "remember"], "properties": { "remember": { "type": "boolean" }, "username": { "type": "string", "minLength": 1 } } } ] }, "AuthResponse": { "type": "object", "required": ["user", "token"], "properties": { "expires": { "type": "integer", "format": "int64" }, "token": { "$ref": "#/components/schemas/Token" }, "user": { "$ref": "#/components/schemas/User" } } }, "DomainName": { "type": "object", "properties": { "subdomain": { "type": "string", "pattern": "(^[a-zA-Z0-9]$)|(^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$)", "minLength": 1, "maxLength": 62 } } }, "EnvSchema": { "type": "object", "required": ["name", "value"], "properties": { "name": { "type": "string", "minLength": 1 }, "value": { "type": "string", "minLength": 1 } } }, "EnvVar": { "type": "object", "required": ["id", "name", "value", "appId"], "properties": { "appId": { "type": "string", "format": "uuid" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "value": { "type": "string" } } }, "ErrorMessage": { "allOf": [ { "$ref": "#/components/schemas/ApiError" }, { "type": "object", "required": ["message"], "properties": { "message": { "type": "string" } } } ] }, "PartialAppServiceSchema": { "type": "object", "properties": { "image": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "port": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 65535 }, "privateDomain": { "allOf": [ { "$ref": "#/components/schemas/DomainName" } ] }, "publicDomain": { "allOf": [ { "$ref": "#/components/schemas/DomainName" } ] }, "replicas": { "type": "integer", "format": "int32", "minimum": 0 } } }, "PartialEnvSchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "value": { "type": "string", "minLength": 1 } } }, "PartialProjectSchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 } } }, "PartialVolumeSchema": { "type": "object", "properties": { "app": { "allOf": [ { "$ref": "#/components/schemas/VolumeAppId" } ] }, "capacity": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 5000 }, "name": { "type": "string", "minLength": 1 }, "path": { "type": "string", "pattern": "^/([a-zA-Z0-9.\\-_/])*", "minLength": 1 } } }, "Password": { "type": "object", "required": ["password"], "properties": { "password": { "type": "string", "minLength": 1 } } }, "ProjectSchema": { "type": "object", "required": ["name"], "properties": { "name": { "type": "string", "minLength": 1 } } }, "Token": { "type": "string" }, "User": { "type": "object", "required": ["id", "username"], "properties": { "id": { "type": "string", "format": "uuid" }, "username": { "type": "string" } } }, "Volume": { "type": "object", "required": ["id", "name", "capacity", "path", "deleted", "projectId"], "properties": { "appId": { "type": "string", "format": "uuid" }, "capacity": { "type": "integer", "format": "int32" }, "deleted": { "type": "boolean" }, "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "path": { "type": "string" }, "projectId": { "type": "string", "format": "uuid" } } }, "VolumeAppId": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" } } }, "VolumeSchema": { "type": "object", "required": ["name", "capacity", "path", "app"], "properties": { "app": { "$ref": "#/components/schemas/VolumeAppId" }, "capacity": { "type": "integer", "format": "int32", "minimum": 1, "maximum": 5000 }, "name": { "type": "string", "minLength": 1 }, "path": { "type": "string", "pattern": "^/([a-zA-Z0-9.\\-_/])*", "minLength": 1 } } } }, "securitySchemes": { "api_key": { "type": "apiKey", "description": "token for protected content access", "name": "x-api-key", "in": "header" } } } }