@acadix/setup
Version:
Acadix Learning Management System backend application project setup
60 lines • 2.04 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const componentDocs = (schemas) => {
return {
components: {
schemas: Object.assign(Object.assign({}, schemas), { successResponse: {
type: "object",
properties: {
status: {
type: "string",
},
message: {
type: "string",
},
data: {
type: "object",
},
},
}, errorResponse: {
type: "object",
properties: {
status: {
type: "string",
},
message: {
type: "string",
},
code: { type: "integer" },
},
}, serverError: {
type: "object",
properties: {
status: {
type: "string",
},
message: {
type: "string",
},
code: { type: "integer" },
},
} }),
securitySchemes: {
BearerAuth: {
type: "http",
in: "header",
scheme: "bearer",
name: "Authorization",
bearerFormat: "JWT",
},
CookieAuth: {
type: "apiKey",
in: "cookie",
name: "accessToken",
},
},
},
};
};
exports.default = componentDocs;
//# sourceMappingURL=components.js.map