From d605225e48bca66f915ce0db448aa61933891986 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Wed, 26 Nov 2025 08:53:05 -0600 Subject: [PATCH] refactor(swagger): corrected the name displaced --- app/src/internal/swagger/config.ts | 109 ++++++++++++++--------------- 1 file changed, 54 insertions(+), 55 deletions(-) diff --git a/app/src/internal/swagger/config.ts b/app/src/internal/swagger/config.ts index 99709c4..b1aa8cf 100644 --- a/app/src/internal/swagger/config.ts +++ b/app/src/internal/swagger/config.ts @@ -1,60 +1,59 @@ export const swaggerUiOptions = { - explorer: true, - customCss: '.swagger-ui .topbar { display: none }', - customSiteTitle: 'Your API Documentation', - swaggerOptions: { - persistAuthorization: true, - displayRequestDuration: true, - filter: true, - syntaxHighlight: { - activate: true, - theme: 'monokai' - } - } + explorer: true, + customCss: ".swagger-ui .topbar { display: none }", + customSiteTitle: "LST API Documentation", + swaggerOptions: { + persistAuthorization: true, + displayRequestDuration: true, + filter: true, + syntaxHighlight: { + activate: true, + theme: "monokai", + }, + }, }; - export const swaggerConfig = { - definition: { - openapi: '3.0.0', - info: { - title: 'Logistics Support Tool', - version: '1.8.0', - description: 'Complete API documentation for lst', - contact: { - name: 'API Support', - email: 'blake.matthes@alpla.com' - } - }, - servers: [ - { - url: 'http://localhost:4200', - description: 'Development server' - }, - { - url: 'https://api.yourapp.com', - description: 'Production server' - } - ], - components: { - securitySchemes: { - bearerAuth: { - type: 'http', - scheme: 'bearer', - bearerFormat: 'JWT' - }, - apiKey: { - type: 'apiKey', - in: 'header', - name: 'X-API-Key' - } - } - }, - security: [ - { - bearerAuth: [] - } - ] - }, - apis: [] // We'll populate this dynamically + definition: { + openapi: "3.0.0", + info: { + title: "Logistics Support Tool", + version: "1.8.0", + description: "Complete API documentation for lst", + contact: { + name: "API Support", + email: "blake.matthes@alpla.com", + }, + }, + servers: [ + { + url: "http://localhost:4200", + description: "Development server", + }, + { + url: "https://api.yourapp.com", + description: "Production server", + }, + ], + components: { + securitySchemes: { + bearerAuth: { + type: "http", + scheme: "bearer", + bearerFormat: "JWT", + }, + apiKey: { + type: "apiKey", + in: "header", + name: "X-API-Key", + }, + }, + }, + security: [ + { + bearerAuth: [], + }, + ], + }, + apis: [], // We'll populate this dynamically };