diff --git a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/CompanyAPI.java b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/CompanyAPI.java index c354188..d8595b9 100644 --- a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/CompanyAPI.java +++ b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/CompanyAPI.java @@ -60,7 +60,7 @@ public interface CompanyAPI { summary = "Search companies", description = "Search companies by name, cnpj, state, city, neighborhood, street, number, complement, zip code, phone, email, website, and contact name", responses = { - @ApiResponse(responseCode = "200", description = "Companies found", content = @Content(schema = @Schema(implementation = Pagination.class))), + @ApiResponse(responseCode = "200", description = "Companies found"), @ApiResponse(responseCode = "400", description = "Invalid request", content = @Content(schema = @Schema(implementation = APIErrorResponse.class))) } ) diff --git a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/TicketAPI.java b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/TicketAPI.java index 77fb59b..ac88cfd 100644 --- a/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/TicketAPI.java +++ b/infrastructure/src/main/java/br/com/ifsp/tickets/infra/api/TicketAPI.java @@ -56,7 +56,7 @@ public interface TicketAPI { @SecurityRequirement(name = "bearer") }, responses = { - @ApiResponse(responseCode = "200", description = "Tickets retrieved successfully", content = @Content(mediaType = "application/json", schema = @Schema(implementation = Pagination.class))), + @ApiResponse(responseCode = "200", description = "Tickets retrieved successfully"), @ApiResponse(responseCode = "401", description = "Invalid credentials", content = @Content(mediaType = "application/json", schema = @Schema(implementation = APIErrorResponse.class))), @ApiResponse(responseCode = "403", description = "Access denied", content = @Content(mediaType = "application/json", schema = @Schema(implementation = APIErrorResponse.class))), @ApiResponse(responseCode = "404", description = "Tickets not found", content = @Content(mediaType = "application/json", schema = @Schema(implementation = APIErrorResponse.class)))