recator placement of code
This commit is contained in:
34
backend/scaler/prodSqlRestart.spec.ts
Normal file
34
backend/scaler/prodSqlRestart.spec.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import type { OpenAPIV3_1 } from "openapi-types";
|
||||
|
||||
export const prodRestartSpec: OpenAPIV3_1.PathsObject = {
|
||||
"/api/system/prodSql/restart": {
|
||||
post: {
|
||||
summary: "Prod restart sql connection",
|
||||
description: "Attempts to restart the sql connection.",
|
||||
tags: ["System"],
|
||||
responses: {
|
||||
"200": {
|
||||
description: "Success from server restarting",
|
||||
content: {
|
||||
"application/json": {
|
||||
schema: {
|
||||
type: "object",
|
||||
properties: {
|
||||
success: {
|
||||
type: "boolean",
|
||||
format: "true",
|
||||
example: true,
|
||||
},
|
||||
message: {
|
||||
type: "string",
|
||||
format: "Sql Server has been restarted",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user