generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from ita-social-projects/revert_migration
revert migration
- Loading branch information
Showing
231 changed files
with
2,056 additions
and
2,133 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
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,4 +1,4 @@ | ||
FROM openjdk:22-ea-21-jdk-slim as runner | ||
FROM openjdk:11.0.15-jre as runner | ||
WORKDIR runner | ||
COPY **/target/app.jar runner/ | ||
CMD java -jar runner/app.jar |
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
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
36 changes: 14 additions & 22 deletions
36
core/src/main/java/greencity/annotations/ApiPageable.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,33 +1,25 @@ | ||
package greencity.annotations; | ||
|
||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.Parameters; | ||
import io.swagger.v3.oas.annotations.enums.ParameterIn; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import io.swagger.annotations.ApiImplicitParam; | ||
import io.swagger.annotations.ApiImplicitParams; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target(ElementType.METHOD) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Parameters({ | ||
@Parameter(name = "page", schema = @Schema(type = "int", minimum = "0", defaultValue = "0"), in = ParameterIn.QUERY, | ||
description = """ | ||
Page index you want to retrieve [0..N]. \ | ||
If page index is less than 0 or not specified then default value is used!\ | ||
"""), | ||
@Parameter(name = "size", schema = @Schema(type = "int", minimum = "1", maximum = "100", defaultValue = "5"), | ||
in = ParameterIn.QUERY, description = """ | ||
Number of records per page [1..100]. \ | ||
If size is less than 1 or not specified then default value is used!\ | ||
If size is bigger than 100, size becomes 100.\ | ||
"""), | ||
@Parameter(name = "sort", schema = @Schema(type = "array", implementation = String.class), in = ParameterIn.QUERY, | ||
description = """ | ||
Sorting criteria in the format: property(,asc|desc). \ | ||
Default sort order is ascending. \ | ||
Multiple sort criteria are supported.\ | ||
""")}) | ||
@ApiImplicitParams({ | ||
@ApiImplicitParam(name = "page", dataType = "int", paramType = "query", defaultValue = "0", | ||
value = "Page index you want to retrieve [0..N]. " | ||
+ "If page index is less than 0 or not specified then default value is used!"), | ||
@ApiImplicitParam(name = "size", dataType = "int", paramType = "query", defaultValue = "5", | ||
value = "Number of records per page [1..100]. " | ||
+ "If size is less than 1 or not specified then default value is used!" | ||
+ "If size is bigger than 100, size becomes 100."), | ||
@ApiImplicitParam(name = "sort", allowMultiple = true, dataType = "string", paramType = "query", | ||
value = "Sorting criteria in the format: property(,asc|desc). " | ||
+ "Default sort order is ascending. " + "Multiple sort criteria are supported.")}) | ||
public @interface ApiPageable { | ||
} |
5 changes: 3 additions & 2 deletions
5
core/src/main/java/greencity/annotations/ImageValidation.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
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.