From d4d00ecfdbfd3759375efe5129e6ea8c8a5bfe11 Mon Sep 17 00:00:00 2001 From: Andrea De Rinaldis Date: Fri, 5 Apr 2024 13:12:32 +0200 Subject: [PATCH] fix: updated Dockerfile with new entrypoint jar launcher --- Dockerfile | 2 +- openapi/openapi.json | 196 ++++++++++++++++++++----------------------- 2 files changed, 90 insertions(+), 108 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26e3228..24d0bde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ COPY --chown=spring:spring --from=builder application/ ./ EXPOSE 8080 -ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.JarLauncher"] \ No newline at end of file +ENTRYPOINT ["java","-javaagent:opentelemetry-javaagent.jar","--enable-preview","org.springframework.boot.loader.launch.JarLauncher"] \ No newline at end of file diff --git a/openapi/openapi.json b/openapi/openapi.json index 367d519..01e9f9b 100644 --- a/openapi/openapi.json +++ b/openapi/openapi.json @@ -1,140 +1,122 @@ { - "openapi": "3.0.1", - "info": { - "description": "null\n\n**STANDARD ERRORS:**\nNAME | CODE | DESCRIPTION\n- | - | -\n**IUVG-1000** | *GENERIC_ERROR* | Error while generating IUV. *...error description...*\n**IUVG-1001** | *VALIDATION_ERROR* | Error while validating IUV generation request. *...error description...*\n**IUVG-1101** | *GENERATION_MAX_RETRIES_REACHED* | Error while generating IUV. Reached the maximum number of internal automatic attempts [*...content...*] to generate a unique IUV. Please, try again later.\n**IUVG-1102** | *GENERATION_AUXDIGIT_ALGORITHM_INVALID_PATTERN* | Error while generating IUV. The IUV code's section generated by timestamp in milliseconds is not correctly composited of 13 digits.\n", - "title": "OpenAPI definition", - "version": "0.2.0" + "openapi" : "3.0.1", + "info" : { + "description" : "null\n\n**STANDARD ERRORS:**\nNAME | CODE | DESCRIPTION\n- | - | -\n**IUVG-1000** | *GENERIC_ERROR* | Error while generating IUV. *...error description...*\n**IUVG-1001** | *VALIDATION_ERROR* | Error while validating IUV generation request. *...error description...*\n**IUVG-1101** | *GENERATION_MAX_RETRIES_REACHED* | Error while generating IUV. Reached the maximum number of internal automatic attempts [*...content...*] to generate a unique IUV for creditor institution [*...content...*]. Please, try again later.\n**IUVG-1102** | *GENERATION_AUXDIGIT_ALGORITHM_INVALID_PATTERN* | Error while generating IUV. The IUV code's section generated by timestamp in milliseconds is not correctly composited of 13 digits.\n", + "title" : "OpenAPI definition", + "version" : "v0" }, - "servers": [ - { - "url": "http://localhost", - "description": "Generated server url" - } - ], - "tags": [ - { - "description": "Application info APIs", - "name": "Home" - }, - { - "description": "IUV Generation APIs", - "name": "Generation" - } - ], - "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" : "IUV Generation APIs", + "name" : "Generation" + } ], + "paths" : { + "/info" : { + "get" : { + "operationId" : "healthCheck", + "responses" : { + "200" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/AppInfoResponse" } } }, - "description": "OK." + "description" : "OK." } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "Return OK if application is started", - "tags": [ - "Home" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "Return OK if application is started", + "tags" : [ "Home" ] } }, - "/organizations/{organization-fiscal-code}/iuv": { - "post": { - "description": "**Description:** \nGenerate a new unique IUV code without aux-digit at the start. \n\n**API properties:**\nProperty | Value\n- | -\nInternal | Y\nExternal | N\nSynchronous | SYNC\nAuthorization | NONE\nAuthentication | APIKEY\nTPS | 1.0/sec\nIdempotency | N\nStateless | Y\nRead/Write Intense | Read and Write\nCacheable | N\n", - "operationId": "generateIUV", - "parameters": [ - { - "description": "The fiscal code of the creditor institution", - "example": 77777777777, - "in": "path", - "name": "organization-fiscal-code", - "required": true, - "schema": { - "type": "string" - } + "/organizations/{organization-fiscal-code}/iuv" : { + "post" : { + "description" : "**Description:** \nGenerate a new unique IUV code without aux-digit at the start. \n\n**API properties:**\nProperty | Value\n- | -\nInternal | Y\nExternal | N\nSynchronous | SYNC\nAuthorization | NONE\nAuthentication | APIKEY\nTPS | 1.0/sec\nIdempotency | N\nStateless | Y\nRead/Write Intense | Read and Write\nCacheable | N\n", + "operationId" : "generateIUV", + "parameters" : [ { + "description" : "The fiscal code of the creditor institution", + "example" : 77777777777, + "in" : "path", + "name" : "organization-fiscal-code", + "required" : true, + "schema" : { + "type" : "string" } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IUVGenerationRequest" + } ], + "requestBody" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IUVGenerationRequest" } } }, - "required": true + "required" : true }, - "responses": { - "201": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/IUVGenerationRequest" + "responses" : { + "201" : { + "content" : { + "application/json" : { + "schema" : { + "$ref" : "#/components/schemas/IUVGenerationRequest" } } }, - "description": "Created." + "description" : "Created." } }, - "security": [ - { - "ApiKey": [] - } - ], - "summary": "Generate new IUV for organization", - "tags": [ - "Generation" - ] + "security" : [ { + "ApiKey" : [ ] + } ], + "summary" : "Generate new IUV for organization", + "tags" : [ "Generation" ] } } }, - "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" } } }, - "IUVGenerationRequest": { - "type": "object", - "properties": { - "auxDigit": { - "type": "integer", - "description": "The value of the AUX digit related to the IUV.", - "format": "int32", - "example": 3 + "IUVGenerationRequest" : { + "type" : "object", + "properties" : { + "auxDigit" : { + "type" : "integer", + "description" : "The value of the AUX digit related to the IUV.", + "format" : "int32", + "example" : 3 }, - "segregationCode": { - "type": "integer", - "description": "The value of the segregation related to the IUV.", - "format": "int32", - "example": 48 + "segregationCode" : { + "type" : "integer", + "description" : "The value of the segregation related to the IUV.", + "format" : "int32", + "example" : 48 } }, - "required": [ - "auxDigit", - "segregationCode" - ] + "required" : [ "auxDigit", "segregationCode" ] } } } -} +} \ No newline at end of file