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.",
									},
								},
							},
						},
					},
				},
			},
		},
	},
};
