generated from pagopa/template-java-spring-microservice
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PAGOPA-2528] break: Entity migration and major project refactoring (#73
) Co-authored-by: pagopa-github-bot <[email protected]>
- Loading branch information
1 parent
6ac3902
commit 7aba809
Showing
211 changed files
with
6,450 additions
and
6,379 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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,111 +1,7 @@ | ||
package it.gov.pagopa.fdr; | ||
|
||
|
||
import it.gov.pagopa.fdr.rest.exceptionmapper.ErrorResponse; | ||
import jakarta.ws.rs.core.Application; | ||
import jakarta.ws.rs.core.MediaType; | ||
import org.eclipse.microprofile.openapi.annotations.Components; | ||
import org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition; | ||
import org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeIn; | ||
import org.eclipse.microprofile.openapi.annotations.enums.SecuritySchemeType; | ||
import org.eclipse.microprofile.openapi.annotations.info.Info; | ||
import org.eclipse.microprofile.openapi.annotations.media.Content; | ||
import org.eclipse.microprofile.openapi.annotations.media.ExampleObject; | ||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
import org.eclipse.microprofile.openapi.annotations.responses.APIResponse; | ||
import org.eclipse.microprofile.openapi.annotations.security.SecurityRequirement; | ||
import org.eclipse.microprofile.openapi.annotations.security.SecurityScheme; | ||
|
||
@SecurityScheme( | ||
type = SecuritySchemeType.APIKEY, | ||
securitySchemeName = "api_key", | ||
apiKeyName="Ocp-Apim-Subscription-Key", | ||
in = SecuritySchemeIn.HEADER) | ||
@OpenAPIDefinition( | ||
security = { @SecurityRequirement(name = "api_key") }, | ||
components = | ||
@Components( | ||
responses = { | ||
@APIResponse( | ||
name = "InternalServerError", | ||
responseCode = "500", | ||
description = "Internal Server Error", | ||
content = | ||
@Content( | ||
mediaType = MediaType.APPLICATION_JSON, | ||
schema = @Schema(implementation = ErrorResponse.class), | ||
example = | ||
""" | ||
{ | ||
"errorId": "50905466-1881-457b-b42f-fb7b2bfb1610", | ||
"httpStatusCode": 500, | ||
"httpStatusDescription": "Internal Server Error", | ||
"appErrorCode": "FDR-0500", | ||
"errors": [ | ||
{ | ||
"message": "An unexpected error has occurred. Please contact support." | ||
} | ||
] | ||
}""")), | ||
@APIResponse( | ||
name = "AppException400", | ||
responseCode = "400", | ||
description = "Default app exception for status 400", | ||
content = | ||
@Content( | ||
mediaType = MediaType.APPLICATION_JSON, | ||
schema = @Schema(implementation = ErrorResponse.class), | ||
examples = { | ||
@ExampleObject( | ||
name = "Error", | ||
value = | ||
""" | ||
{ | ||
"httpStatusCode": 400, | ||
"httpStatusDescription": "Bad Request", | ||
"appErrorCode": "FDR-0702", | ||
"errors": [ | ||
{ | ||
"message": "Reporting Fdr [<fdr>] is invalid" | ||
} | ||
] | ||
}"""), | ||
@ExampleObject( | ||
name = "Errors with path", | ||
value = | ||
""" | ||
{ | ||
"httpStatusCode": 400, | ||
"httpStatusDescription": "Bad Request", | ||
"appErrorCode": "FDR-0702", | ||
"errors": [ | ||
{ | ||
"path": "<detail.path.if-exist>", | ||
"message": "<detail.message>" | ||
} | ||
] | ||
}""") | ||
})), | ||
@APIResponse( | ||
name = "AppException404", | ||
responseCode = "404", | ||
description = "Default app exception for status 404", | ||
content = | ||
@Content( | ||
mediaType = MediaType.APPLICATION_JSON, | ||
schema = @Schema(implementation = ErrorResponse.class), | ||
example = | ||
""" | ||
{ | ||
"httpStatusCode": 404, | ||
"httpStatusDescription": "Not Found", | ||
"appErrorCode": "FDR-0701", | ||
"errors": [ | ||
{ | ||
"message": "Reporting Fdr [<fdr>] not found" | ||
} | ||
] | ||
}""")), | ||
}), | ||
info = @Info(title = "FDR - Flussi di Rendicontazione", version = "0.0.0-SNAPSHOT")) | ||
public class App extends Application {} | ||
public class App extends Application { | ||
|
||
} |
Oops, something went wrong.