refactor(swagger): corrected the name displaced

This commit is contained in:
2025-11-26 08:53:05 -06:00
parent 8e7f1eb098
commit d605225e48

View File

@@ -1,60 +1,59 @@
export const swaggerUiOptions = { export const swaggerUiOptions = {
explorer: true, explorer: true,
customCss: '.swagger-ui .topbar { display: none }', customCss: ".swagger-ui .topbar { display: none }",
customSiteTitle: 'Your API Documentation', customSiteTitle: "LST API Documentation",
swaggerOptions: { swaggerOptions: {
persistAuthorization: true, persistAuthorization: true,
displayRequestDuration: true, displayRequestDuration: true,
filter: true, filter: true,
syntaxHighlight: { syntaxHighlight: {
activate: true, activate: true,
theme: 'monokai' theme: "monokai",
} },
} },
}; };
export const swaggerConfig = { export const swaggerConfig = {
definition: { definition: {
openapi: '3.0.0', openapi: "3.0.0",
info: { info: {
title: 'Logistics Support Tool', title: "Logistics Support Tool",
version: '1.8.0', version: "1.8.0",
description: 'Complete API documentation for lst', description: "Complete API documentation for lst",
contact: { contact: {
name: 'API Support', name: "API Support",
email: 'blake.matthes@alpla.com' email: "blake.matthes@alpla.com",
} },
}, },
servers: [ servers: [
{ {
url: 'http://localhost:4200', url: "http://localhost:4200",
description: 'Development server' description: "Development server",
}, },
{ {
url: 'https://api.yourapp.com', url: "https://api.yourapp.com",
description: 'Production server' description: "Production server",
} },
], ],
components: { components: {
securitySchemes: { securitySchemes: {
bearerAuth: { bearerAuth: {
type: 'http', type: "http",
scheme: 'bearer', scheme: "bearer",
bearerFormat: 'JWT' bearerFormat: "JWT",
}, },
apiKey: { apiKey: {
type: 'apiKey', type: "apiKey",
in: 'header', in: "header",
name: 'X-API-Key' name: "X-API-Key",
} },
} },
}, },
security: [ security: [
{ {
bearerAuth: [] bearerAuth: [],
} },
] ],
}, },
apis: [] // We'll populate this dynamically apis: [], // We'll populate this dynamically
}; };