This application belong to the inbound tier of the Piattaforma Unitaria product.
See PU Microservice Architecture for more details.
- Presentation layer towards the FE:
- It authorizes requests retrieving user info through p4pa-auth;
See OpenAPI, exposed through the following path:
/swagger-ui/index.html
See Postman collection and Postman Environment.
GET /bff/core-health
: To return the global status of the entire product;POST /bff/token
: To exchange the id token provided by the external IAM with an access token;GET /bff/auth/userinfo
: To get logged user info;GET /bff/auth/revoke
: To perform logout;GET /bff/brokers/config
: To retrieve FE customization based on the broker to which belong the logged user;GET /bff/organizations
: To retrieve the organization granted to the logged user;
401
: Invalid access token provided, thus a new login is required;403
: Trying to access a not authorized resource.
See available actuator endpoints through the following path:
/actuator
- Health (provide an accessToken to see details):
/actuator/health
- Liveness:
/actuator/health/liveness
- Readiness:
/actuator/health/readiness
- Liveness:
- Metrics:
/actuator/metrics
- Prometheus:
/actuator/prometheus
- Prometheus:
Further endpoints are exposed through the JMX console.
- p4pa-auth:
- To validate access token, retrieve user info and execute the logout;
- p4pa-classification:
- To access to domain data and operations;
- p4pa-debt-positions:
- To access to domain data and operations;
- p4pa-organization:
- To access to domain data and operations;
- p4pa-process-executions:
- To access to domain data and operations;
- p4pa-registries:
- To access to domain data and operations;
- p4pa-pagopa-payments:
- To get payment pdf notice;
- p4pa-workflow-hub:
- To verify last execution of taxonomy synchronization and start it on-demand;
See application.yml for each configurable property.
ENV | DESCRIPTION | DEFAULT |
---|---|---|
SERVER_PORT | Application server listening port | 8080 |
ENV | DESCRIPTION | DEFAULT |
---|---|---|
LOG_LEVEL_ROOT | Base level | INFO |
LOG_LEVEL_PAGOPA | Base level of custom classes | INFO |
LOG_LEVEL_SPRING | Level applied to Spring framework | INFO |
LOG_LEVEL_SPRING_BOOT_AVAILABILITY | To print availability events | DEBUG |
LOGGING_LEVEL_API_REQUEST_EXCEPTION | Level applied to APIs exception | INFO |
LOG_LEVEL_PERFORMANCE_LOG | Level applied to PerformanceLog | INFO |
LOG_LEVEL_PERFORMANCE_LOG_API_REQUEST | Level applied to API Performance Log | INFO |
LOG_LEVEL_PERFORMANCE_LOG_REST_INVOKE | Level applied to REST invoke Performance Log | INFO |
π Caching
ENV | DESCRIPTION | DEFAULT |
---|---|---|
CACHE_ORGANIZATION_SIZE | Organization cache size | 100 |
CACHE_ORGANIZATION_MINUTES | Organization cache retention (minutes) | 60 |
CACHE_TAXONOMY_SIZE | Taxonomy data cache size | 100 |
CACHE_TAXONOMY_MINUTES | Taxonomy data cache retention (minutes) | 60 |
CACHE_BROKER_SIZE | Broker data cache size | 100 |
CACHE_BROKER_MINUTES | Broker data cache retention (minutes) | 60 |
CACHE_DEBT_POSITION_TYPE_ORG_SIZE | DebtPositionTypeOrg data cache size | 100 |
CACHE_DEBT_POSITION_TYPE_ORG_MINUTES | DebtPositionTypeOrg data cache retention (minutes) | 60 |
CACHE_DEBT_POSITION_TYPE_SIZE | DebtPositionType data cache size | 100 |
CACHE_DEBT_POSITION_TYPE_MINUTES | DebtPositionType data cache retention (minutes) | 60 |
ENV | DESCRIPTION | DEFAULT |
---|---|---|
DEFAULT_REST_CONNECTION_POOL_SIZE | Default connection pool size | 10 |
DEFAULT_REST_CONNECTION_POOL_SIZE_PER_ROUTE | Default connection pool size per route | 5 |
DEFAULT_REST_CONNECTION_POOL_TIME_TO_LIVE_MINUTES | Default connection pool TTL (minutes) | 10 |
DEFAULT_REST_TIMEOUT_CONNECT_MILLIS | Default connection timeout (milliseconds) | 120000 |
DEFAULT_REST_TIMEOUT_READ_MILLIS | Default read timeout (milliseconds) | 120000 |
ENV | DESCRIPTION | DEFAULT |
---|---|---|
AUTH_BASE_URL | Auth microservice URL | |
AUTH_MAX_ATTEMPTS | Auth API max attempts | 3 |
AUTH_WAIT_TIME_MILLIS | Auth retry waiting time (milliseconds) | 500 |
AUTH_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
ORGANIZATION_BASE_URL | Organization microservice URL | |
ORGANIZATION_MAX_ATTEMPTS | Organization API max attempts | 3 |
ORGANIZATION_WAIT_TIME_MILLIS | Organization retry waiting time (milliseconds) | 500 |
ORGANIZATION_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
DEBT_POSITIONS_BASE_URL | DebtPosition microservice URL | |
DEBT_POSITIONS_MAX_ATTEMPTS | DebtPosition API max attempts | 3 |
DEBT_POSITIONS_WAIT_TIME_MILLIS | DebtPosition retry waiting time (milliseconds) | 500 |
DEBT_POSITIONS_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
PROCESS_EXECUTIONS_BASE_URL | ProcessExecutions microservice URL | |
PROCESS_EXECUTIONS_MAX_ATTEMPTS | ProcessExecutions API max attempts | 3 |
PROCESS_EXECUTIONS_WAIT_TIME_MILLIS | ProcessExecutions retry waiting time (milliseconds) | 500 |
PROCESS_EXECUTIONS_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
CLASSIFICATION_BASE_URL | Classification microservice URL | |
CLASSIFICATION_MAX_ATTEMPTS | Classification API max attempts | 3 |
CLASSIFICATION_WAIT_TIME_MILLIS | Classification retry waiting time (milliseconds) | 500 |
CLASSIFICATION_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
PAGOPA_PAYMENTS_BASE_URL | PagoPaPayments microservice URL | |
PAGOPA_PAYMENTS_MAX_ATTEMPTS | PagoPaPayments API max attempts | 3 |
PAGOPA_PAYMENTS_WAIT_TIME_MILLIS | PagoPaPayments retry waiting time (milliseconds) | 500 |
PAGOPA_PAYMENTS_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
REGISTRIES_BASE_URL | Registries microservice URL | |
REGISTRIES_MAX_ATTEMPTS | Registries API max attempts | 3 |
REGISTRIES_WAIT_TIME_MILLIS | Registries retry waiting time (milliseconds) | 500 |
REGISTRIES_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
WORKFLOW_HUB_BASE_URL | WorkflowHub microservice URL | |
WORKFLOW_HUB_MAX_ATTEMPTS | WorkflowHub API max attempts | 3 |
WORKFLOW_HUB_WAIT_TIME_MILLIS | WorkflowHub retry waiting time (milliseconds) | 500 |
WORKFLOW_HUB_PRINT_BODY_WHEN_ERROR | To print body when an error occurs | true |
ENV | DESCRIPTION | DEFAULT |
---|---|---|
DEBT_POSITION_TYPE_ORG_OPERATORS_MAX_PAGE_SIZE | Maximum DebtPositionTypeOrgOperators page size | 10000 |
Ensure the following tools are installed on your machine:
- Java 21+
- Gradle (or use the Gradle wrapper included in the repository)
- Docker (to build and run on an isolated environment, optional)
./gradlew dependencies --write-locks
./gradlew clean build
./gradlew test
./gradlew bootRun
docker build -t <APP_NAME> .
docker run --env-file <ENV_FILE> <APP_NAME>