From b55188bc8f5294e0774210217b27f64fb91581be Mon Sep 17 00:00:00 2001 From: Madmat8 Date: Tue, 28 Jan 2025 12:27:48 +0100 Subject: [PATCH] update documantation and document new template parameters --- README.adoc | 44 +++++++++++++++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/README.adoc b/README.adoc index a8fc804..09398cc 100644 --- a/README.adoc +++ b/README.adoc @@ -21,7 +21,6 @@ It can be used as: 1.0.0-SNAPSHOT 3.9.4 - 1.0.0 1.0.0 1.1.0 @@ -29,28 +28,45 @@ It can be used as: - hu.blackbelt.judo.archetype - judo-psm-archetype-maven-plugin - ${judo-psm-archetype-version} + hu.blackbelt.judo.meta + judo-psm-generator-maven-plugin + ${judo-meta-psm-version} - execute-psm-test-model-from-artifact - test + execute-psm-rest-generation + generate-sources generate - ${basedir}/src/main/resources + mvn:hu.blackbelt.judo.generator:judo-psm-generator-jaxrs-common:${judo-psm-generator-jaxrs-version} + mvn:hu.blackbelt.judo.generator:judo-psm-generator-jaxrs-api:${judo-psm-generator-jaxrs-version} + mvn:hu.blackbelt.judo.generator:judo-psm-generator-jaxrs-impl:${judo-psm-generator-jaxrs-version} + mvn:hu.blackbelt.judo.generator:judo-psm-generator-jaxrs-osgi:${judo-psm-generator-jaxrs-version} hu.blackbelt.judo.psm.generator.jaxrs.PsmModelHelper psm-jaxrs + hu.blackbelt.judo.psm.generator.jaxrs.api.StoredVariableHelper + + hu.blackbelt.judo.generator.commons, + hu.blackbelt.judo.psm.generator.jaxrs + + + true + ${project.groupId}.model-name.api + ${project.groupId}.model-name.impl + ${project.groupId}.model-name.osgi + true + base-url-of-your-application + authentication-url + mvn:your.psm.model.group.id:your.psm.model.artifact.id:your.psm.model.version!model-name-in-jar.model - ${basedir}/target/generated-test-classes/psm/jaxrs + ${basedir}/target/generated-sources @@ -68,11 +84,17 @@ It can be used as: ---- -This example generates a complete project setup into `target/classes` directory. +This example generates a complete project setup into `target/generated-sources` directory. In a project this generation can be placed in the model project as a profile. -The `judo-psm-archetype-maven-plugin` documentation is placed inside -the plugin documentation itself. https://github.com/BlackBeltTechnology/judo-psm-archetype +The `generateOpenApiAnnotations` template parameter determines whether the annotations required for OpenAPI documentation generation should be generated or not. + +The `baseUrl` template parameter specifies the prefix of the URL of the application in the OpenAPI documentation. In the OpenAPI documentation, the URL is constructed as follows: `{baseUrl}/api/{model-name}/{actor-name}/{actor-name}`. + +The `authenticationUrl` template parameter defines the prefix of the openIdConnectUrl in the OpenAPI documentation. In the OpenAPI documentation, the openIdConnectUrl is structured as follows: `{authenticationUrl}/auth/realms/{realm-name}/.well-known/openid-configuration`. + +The `judo-psm-generator-maven-plugin` documentation is placed inside +the plugin documentation itself. https://github.com/BlackBeltTechnology/judo-meta-psm