From 214d78d5a35b5eb9d7dee7964be8bc60077018a4 Mon Sep 17 00:00:00 2001 From: Leonardo da Silva Date: Sat, 19 Oct 2024 18:06:43 -0300 Subject: [PATCH] docs: update API documentation --- .../src/main/java/br/com/ifsp/tickets/infra/api/CompanyAPI.java | 2 +- .../src/main/java/br/com/ifsp/tickets/infra/api/TicketAPI.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)))