35 lines
747 B
TypeScript
35 lines
747 B
TypeScript
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",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|