generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: code refactor - removing swagger (#418)
- Loading branch information
1 parent
6a431d9
commit 6014d4b
Showing
19 changed files
with
101 additions
and
864 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 0 additions & 70 deletions
70
backend/src/main/java/ca/bc/gov/restapi/results/common/config/SwaggerConfig.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
backend/src/main/java/ca/bc/gov/restapi/results/common/endpoint/SecretsServiceEndpoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
backend/src/main/java/ca/bc/gov/restapi/results/common/pagination/PaginatedResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
package ca.bc.gov.restapi.results.common.pagination; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import java.util.List; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
/** Holds an API response with pagination information and data. */ | ||
@Getter | ||
@Setter | ||
@Schema(description = "Holds an API response with pagination information and data.") | ||
public class PaginatedResult<T> { | ||
|
||
@Schema(description = "Current page index, zero-based.", example = "2") | ||
private int pageIndex; | ||
|
||
@Schema(description = "The amount of records per page.", example = "15") | ||
private int perPage; | ||
|
||
@Schema(description = "The amount of pages", example = "3") | ||
private int totalPages; | ||
|
||
@Schema(description = "Defines if there's more records to fetch", example = "false") | ||
private boolean hasNextPage; | ||
|
||
@Schema(description = "List of records, or empty list if no records.") | ||
private List<T> data; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.