Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jacopocarlini committed Sep 9, 2024
2 parents 844fc21 + ea78551 commit eca629d
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 110 deletions.
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: pagopa-afm-calculator
description: Microservice that handles calculation for pagoPA Advanced Fees Management
type: application
version: 0.7.0
appVersion: 0.0.1-7-PAGOPA-1647-pm-ingestion
version: 0.8.0
appVersion: 0.0.1-8-PAGOPA-1647-pm-ingestion
dependencies:
- name: microservice-chart
version: 5.9.0
Expand Down
2 changes: 1 addition & 1 deletion helm/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: "pagopa-biz-pm-ingestion"
image:
repository: ghcr.io/pagopa/pagopa-biz-pm-ingestion
tag: "0.0.1-7-PAGOPA-1647-pm-ingestion"
tag: "0.0.1-8-PAGOPA-1647-pm-ingestion"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: "pagopa-biz-pm-ingestion"
image:
repository: ghcr.io/pagopa/pagopa-biz-pm-ingestion
tag: "0.0.1-7-PAGOPA-1647-pm-ingestion"
tag: "0.0.1-8-PAGOPA-1647-pm-ingestion"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion helm/values-uat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ microservice-chart:
fullnameOverride: "pagopa-biz-pm-ingestion"
image:
repository: ghcr.io/pagopa/pagopa-biz-pm-ingestion
tag: "0.0.1-7-PAGOPA-1647-pm-ingestion"
tag: "0.0.1-8-PAGOPA-1647-pm-ingestion"
pullPolicy: Always
livenessProbe:
httpGet:
Expand Down
221 changes: 117 additions & 104 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
@@ -1,148 +1,161 @@
{
"openapi" : "3.0.1",
"info" : {
"title" : "OpenAPI definition",
"version" : "v0"
"openapi": "3.0.1",
"info": {
"title": "OpenAPI definition",
"version": "0.0.1-8-PAGOPA-1647-pm-ingestion"
},
"servers" : [ {
"url" : "http://localhost",
"description" : "Generated server url"
} ],
"paths" : {
"/extraction/data" : {
"post" : {
"tags" : [ "PM extraction data REST APIs" ],
"summary" : "Request for data extraction from the PM.",
"operationId" : "pmDataExtraction",
"parameters" : [ {
"name" : "pmExtractionType",
"in" : "query",
"required" : false,
"schema" : {
"type" : "string",
"default" : "CARD",
"enum" : [ "CARD", "BPAY", "PAYPAL" ]
"servers": [
{
"url": "http://localhost",
"description": "Generated server url"
}
],
"paths": {
"/extraction/data": {
"post": {
"tags": [
"PM extraction data REST APIs"
],
"summary": "Request for data extraction from the PM.",
"operationId": "pmDataExtraction",
"parameters": [
{
"name": "pmExtractionType",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": "CARD",
"enum": [
"CARD",
"BPAY",
"PAYPAL"
]
}
}
} ],
"requestBody" : {
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/DataExtractionOptionsModel"
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DataExtractionOptionsModel"
}
}
},
"required" : true
"required": true
},
"responses" : {
"400" : {
"description" : "Malformed request.",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"responses": {
"404": {
"description": "Not found.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"401" : {
"description" : "Wrong or missing function key."
},
"409" : {
"description" : "Conflict.",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"409": {
"description": "Conflict.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"422" : {
"description" : "Unprocessable entity.",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"422": {
"description": "Unprocessable entity.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"500" : {
"description" : "Service unavailable.",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"401": {
"description": "Wrong or missing function key."
},
"200": {
"description": "Request paid."
},
"400": {
"description": "Malformed request.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
},
"200" : {
"description" : "Request paid."
},
"404" : {
"description" : "Not found.",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/ProblemJson"
"500": {
"description": "Service unavailable.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemJson"
}
}
}
}
},
"security" : [ {
"ApiKey" : [ ]
}, {
"Authorization" : [ ]
} ]
"security": [
{
"ApiKey": []
},
{
"Authorization": []
}
]
}
}
},
"components" : {
"schemas" : {
"DataExtractionOptionsModel" : {
"type" : "object",
"properties" : {
"taxCodes" : {
"type" : "array",
"items" : {
"type" : "string"
"components": {
"schemas": {
"DataExtractionOptionsModel": {
"type": "object",
"properties": {
"taxCodes": {
"type": "array",
"items": {
"type": "string"
}
},
"creationDateFrom" : {
"type" : "string",
"description" : "if provided use the format yyyy-MM-dd"
"creationDateFrom": {
"type": "string",
"description": "if provided use the format yyyy-MM-dd"
},
"creationDateTo" : {
"type" : "string",
"description" : "if provided use the format yyyy-MM-dd"
"creationDateTo": {
"type": "string",
"description": "if provided use the format yyyy-MM-dd"
}
}
},
"ProblemJson" : {
"type" : "object",
"properties" : {
"title" : {
"type" : "string",
"description" : "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
"ProblemJson": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "A short, summary of the problem type. Written in english and readable for engineers (usually not suited for non technical stakeholders and not localized); example: Service Unavailable"
},
"status" : {
"maximum" : 600,
"minimum" : 100,
"type" : "integer",
"description" : "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format" : "int32",
"example" : 200
"status": {
"maximum": 600,
"minimum": 100,
"type": "integer",
"description": "The HTTP status code generated by the origin server for this occurrence of the problem.",
"format": "int32",
"example": 200
},
"detail" : {
"type" : "string",
"description" : "A human readable explanation specific to this occurrence of the problem.",
"example" : "There was an error processing the request"
"detail": {
"type": "string",
"description": "A human readable explanation specific to this occurrence of the problem.",
"example": "There was an error processing the request"
}
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>it.gov.pagopa</groupId>
<artifactId>bizpmingestion</artifactId>
<version>0.0.1-7-PAGOPA-1647-pm-ingestion</version>
<version>0.0.1-8-PAGOPA-1647-pm-ingestion</version>
<name>Biz PM Ingestion</name>
<description>Microservice for retrieving payment receipts from the PM.</description>

Expand Down

0 comments on commit eca629d

Please sign in to comment.