Skip to content

Commit

Permalink
feat: docs: improve swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
guesant committed Feb 24, 2024
1 parent cd86d4c commit be803c4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import { ICidadeFindOneResultDto } from '../../(dtos)';
import { IClientAccess } from '../../../../domain/client-access';
import { ClientAccessHttp, DtoOperationFindAll, DtoOperationFindOne, HttpDtoParam } from '../../../../infrastructure';
import { CidadeService } from './cidade.service';
import { CidadeOperations } from './dtos';
import { IClientAccess } from '../../../../domain/client-access';

@ApiTags('ambientes')
@ApiTags('Ambientes / Base / Cidade')
@Controller('/base/cidades')
export class CidadeController {
constructor(private cidadeService: CidadeService) {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Controller, Get } from '@nestjs/common';
import { ApiParam, ApiTags } from '@nestjs/swagger';
import { IEstadoFindOneResultDto } from '../../(dtos)';
import { IClientAccess } from '../../../../domain';
import { ClientAccessHttp, DtoOperationFindAll, DtoOperationFindOne, HttpDtoParam } from '../../../../infrastructure';
import { EstadoOperations } from './dtos/estado.operations';
import { EstadoService } from './estado.service';
import { IEstadoFindOneResultDto } from '../../(dtos)';

@ApiTags('ambientes')
@ApiTags('Ambientes / Base / Estado')
@Controller('/base/estados')
export class EstadoController {
constructor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ClientAccessHttp, DtoOperationCreate, DtoOperationDelete, DtoOperationF
import { CampusService } from './campus.service';
import { CampusOperations } from './dtos/campus.operations';

@ApiTags('ambientes')
@ApiTags('Ambientes / Campus')
@Controller('/campi')
export class CampusController {
constructor(private campusService: CampusService) {}
Expand Down
2 changes: 1 addition & 1 deletion luna-backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ async function bootstrap() {
.setTitle('SISGEA - Luna - API')
.setDescription('API para a consulta e manipulação de dados e procedimentos relacionados ao Sistema de Gestão Acadêmico.')
.setVersion('0.0')
.addServer('http://localhost:3000/')
.addServer('https://luna.sisgha.com/api/')
.addServer('http://localhost:3000/')
.addBearerAuth()
.build();

Expand Down

0 comments on commit be803c4

Please sign in to comment.