diff --git a/CHANGELOG.md b/CHANGELOG.md index 500fb73..75a27b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Added support to manage configurations [#22658] - Migrated service to SecretManagerProvider [#22871] - Migrated to ServiceClass corresponding to Maven groupId +- Added Enunciate to automatically create REST APIs documentation [#23096] ## [v2.1.0] diff --git a/enunciate.xml b/enunciate.xml new file mode 100644 index 0000000..f5ceb70 --- /dev/null +++ b/enunciate.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/gcube/extra-resources/WEB-INF/gcube-app.xml b/gcube/extra-resources/WEB-INF/gcube-app.xml index f77abc3..4f4797e 100644 --- a/gcube/extra-resources/WEB-INF/gcube-app.xml +++ b/gcube/extra-resources/WEB-INF/gcube-app.xml @@ -5,4 +5,5 @@ ${project.groupId} ${project.version} ${project.description} + /docs/* \ No newline at end of file diff --git a/pom.xml b/pom.xml index e43f842..435f382 100644 --- a/pom.xml +++ b/pom.xml @@ -22,6 +22,7 @@ UTF-8 ${project.basedir}${file.separator}src${file.separator}main${file.separator}webapp${file.separator}WEB-INF data-catalogue + 2.14.0 @@ -97,8 +98,6 @@ resource-registry-publisher provided - - org.gcube.data-catalogue gcubedatacatalogue-metadata-discovery @@ -208,6 +207,22 @@ gcube-jackson-databind + + + org.geotoolkit + geotk-xml-base + 3.20-geoapi-3.0 + provided + + + javax.servlet + javax.servlet-api + 3.1.0 + provided + + + + junit @@ -222,4 +237,54 @@ + + + + + + + com.webcohesion.enunciate + enunciate-maven-plugin + ${enunciate.version} + + + + + assemble + + assemble + + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 2.5 + + + copy-enunciate-docs + process-resources + + copy-resources + + + target + + + ${project.build.directory}/${project.artifactId}-${project.version}/docs + ${project.build.directory}/docs + true + + + + + + + + + +