refactor(swagger): corrected the name displaced
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user