recator placement of code
This commit is contained in:
55
backend/scaler/prodSqlStart.spec.ts
Normal file
55
backend/scaler/prodSqlStart.spec.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import type { OpenAPIV3_1 } from "openapi-types";
|
||||
|
||||
export const prodStartSpec: OpenAPIV3_1.PathsObject = {
|
||||
"/api/system/prodSql/start": {
|
||||
post: {
|
||||
summary: "Prod start sql connection",
|
||||
description: "Connects to the prod sql server.",
|
||||
tags: ["System"],
|
||||
responses: {
|
||||
"200": {
|
||||
description: "Data that is returned from the connection",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
success: {
|
||||
type: "boolean",
|
||||
format: "true",
|
||||
example: true,
|
||||
},
|
||||
message: {
|
||||
type: "string",
|
||||
format: "usmcd1vms036 is connected to AlplaPROD_test3_cus",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"400": {
|
||||
description: "Data that is returned from the connection",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
success: {
|
||||
type: "boolean",
|
||||
format: "false",
|
||||
example: false,
|
||||
},
|
||||
message: {
|
||||
type: "string",
|
||||
format: "The Sql server is already connected.",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user