MVP for API Key authentication

This commit is contained in:
ian
2025-12-03 14:51:59 +07:00
parent 9413c442df
commit 347e0192e2
17 changed files with 733 additions and 49 deletions
+3 -1
View File
@@ -6,7 +6,7 @@ interface OpenApiDocWithTagGroups { 'x-tagGroups': { name: string, tags: string[
type OpenApiDocumentation = Omit<Partial<OpenAPIV3.Document<OpenApiDocWithTagGroups>>, 'x-express-openapi-additional-middleware' | 'x-express-openapi-validation-strict'>
export const swaggerPlugin = openapi({
path: '/swagger',
path: '/docs',
provider: 'scalar',
mapJsonSchema: {
zod: z.toJSONSchema,
@@ -17,10 +17,12 @@ export const swaggerPlugin = openapi({
version: 'v1.0.0',
},
'tags': [
{ name: 'Auth', description: 'Auth API' },
{ name: 'Device', description: 'Device API' },
],
// --- Grouping di atas tag ---
'x-tagGroups': [
{ name: 'Auth', tags: ['Auth'] },
{ name: 'Device', tags: ['Device'] },
],
'components': {