import { DocumentBuilder } from '@nestjs/swagger';

export const swaggerConfig = new DocumentBuilder()
  .setTitle('DFUK API')
  .setDescription('Official API of DigitalForensic UK')
  .setVersion('1.0.0')
  .addCookieAuth('Authentication', {
    description: 'Bearer token for authentication (sent via cookies)',
    type: 'apiKey',
  })
  .addBearerAuth({
    description: 'Bearer token for authentication (sent via Authorization header)',
    type: 'apiKey',
    in: 'header',
    name: 'authorization',
  })
  .addApiKey({ type: 'apiKey', name: 'x-api-key', in: 'header' }, 'x-api-key') 
  .build();
