generated from pagopa/template-java-spring-microservice
-
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: [PAGOPA-2286] Added recovery by sessionId (#152)
- Loading branch information
Showing
7 changed files
with
988 additions
and
948 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,142 +1,123 @@ | ||
{ | ||
"openapi": "3.0.1", | ||
"info": { | ||
"title": "WISP-Converter-redirect", | ||
"version": "0.4.12" | ||
"openapi" : "3.0.1", | ||
"info" : { | ||
"title" : "WISP-Converter-redirect", | ||
"version" : "0.4.12" | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "http://localhost", | ||
"description": "Generated server url" | ||
} | ||
], | ||
"tags": [ | ||
{ | ||
"description": "Application info APIs", | ||
"name": "Home" | ||
}, | ||
{ | ||
"description": "Conversion and redirection APIs", | ||
"name": "Redirect" | ||
} | ||
], | ||
"paths": { | ||
"/info": { | ||
"get": { | ||
"operationId": "healthCheck", | ||
"responses": { | ||
"200": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/AppInfoResponse" | ||
"servers" : [ { | ||
"url" : "http://localhost", | ||
"description" : "Generated server url" | ||
} ], | ||
"tags" : [ { | ||
"description" : "Application info APIs", | ||
"name" : "Home" | ||
}, { | ||
"description" : "Conversion and redirection APIs", | ||
"name" : "Redirect" | ||
} ], | ||
"paths" : { | ||
"/info" : { | ||
"get" : { | ||
"operationId" : "healthCheck", | ||
"responses" : { | ||
"200" : { | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/AppInfoResponse" | ||
} | ||
} | ||
}, | ||
"description": "OK.", | ||
"headers": { | ||
"X-Request-Id": { | ||
"description": "This header identifies the call", | ||
"schema": { | ||
"type": "string" | ||
"description" : "OK.", | ||
"headers" : { | ||
"X-Request-Id" : { | ||
"description" : "This header identifies the call", | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"ApiKey": [] | ||
} | ||
], | ||
"summary": "Return OK if application is started", | ||
"tags": [ | ||
"Home" | ||
] | ||
"security" : [ { | ||
"ApiKey" : [ ] | ||
} ], | ||
"summary" : "Return OK if application is started", | ||
"tags" : [ "Home" ] | ||
}, | ||
"parameters": [ | ||
{ | ||
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", | ||
"in": "header", | ||
"name": "X-Request-Id", | ||
"schema": { | ||
"type": "string" | ||
} | ||
"parameters" : [ { | ||
"description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", | ||
"in" : "header", | ||
"name" : "X-Request-Id", | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
] | ||
} ] | ||
}, | ||
"/payments": { | ||
"get": { | ||
"operationId": "redirect", | ||
"parameters": [ | ||
{ | ||
"example": "identificativoIntermediarioPA_sessionId", | ||
"in": "query", | ||
"name": "idSession", | ||
"required": true, | ||
"schema": { | ||
"type": "string" | ||
} | ||
"/payments" : { | ||
"get" : { | ||
"operationId" : "redirect", | ||
"parameters" : [ { | ||
"example" : "identificativoIntermediarioPA_sessionId", | ||
"in" : "query", | ||
"name" : "idSession", | ||
"required" : true, | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
], | ||
"responses": { | ||
"302": { | ||
"description": "Redirect to Checkout service.", | ||
"headers": { | ||
"X-Request-Id": { | ||
"description": "This header identifies the call", | ||
"schema": { | ||
"type": "string" | ||
} ], | ||
"responses" : { | ||
"302" : { | ||
"description" : "Redirect to Checkout service.", | ||
"headers" : { | ||
"X-Request-Id" : { | ||
"description" : "This header identifies the call", | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"security": [ | ||
{ | ||
"ApiKey": [] | ||
} | ||
], | ||
"tags": [ | ||
"Redirect" | ||
] | ||
"security" : [ { | ||
"ApiKey" : [ ] | ||
} ], | ||
"tags" : [ "Redirect" ] | ||
}, | ||
"parameters": [ | ||
{ | ||
"description": "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", | ||
"in": "header", | ||
"name": "X-Request-Id", | ||
"schema": { | ||
"type": "string" | ||
} | ||
"parameters" : [ { | ||
"description" : "This header identifies the call, if not passed it is self-generated. This ID is returned in the response.", | ||
"in" : "header", | ||
"name" : "X-Request-Id", | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
] | ||
} ] | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"AppInfoResponse": { | ||
"type": "object", | ||
"properties": { | ||
"environment": { | ||
"type": "string" | ||
"components" : { | ||
"schemas" : { | ||
"AppInfoResponse" : { | ||
"type" : "object", | ||
"properties" : { | ||
"environment" : { | ||
"type" : "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
"name" : { | ||
"type" : "string" | ||
}, | ||
"version": { | ||
"type": "string" | ||
"version" : { | ||
"type" : "string" | ||
} | ||
} | ||
} | ||
}, | ||
"securitySchemes": { | ||
"ApiKey": { | ||
"description": "The API key to access this function app.", | ||
"in": "header", | ||
"name": "Ocp-Apim-Subscription-Key", | ||
"type": "apiKey" | ||
"securitySchemes" : { | ||
"ApiKey" : { | ||
"description" : "The API key to access this function app.", | ||
"in" : "header", | ||
"name" : "Ocp-Apim-Subscription-Key", | ||
"type" : "apiKey" | ||
} | ||
} | ||
} | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
.../java/it/gov/pagopa/wispconverter/controller/model/RecoveryReceiptBySessionIdRequest.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package it.gov.pagopa.wispconverter.controller.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@Builder(toBuilder = true) | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@ToString | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class RecoveryReceiptBySessionIdRequest { | ||
|
||
private List<String> sessionIds; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/it/gov/pagopa/wispconverter/secondary/IdempotencyKeyRepositorySecondary.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package it.gov.pagopa.wispconverter.secondary; | ||
|
||
import com.azure.spring.data.cosmos.repository.CosmosRepository; | ||
import it.gov.pagopa.wispconverter.repository.model.IdempotencyKeyEntity; | ||
import org.springframework.beans.factory.annotation.Qualifier; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
@Qualifier("secondaryCosmosTemplate") | ||
public interface IdempotencyKeyRepositorySecondary extends CosmosRepository<IdempotencyKeyEntity, String> { | ||
|
||
} |
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.