Skip to content

Commit

Permalink
feat: API CRUD Organization Entity (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisKina-dev authored Dec 11, 2024
1 parent b3de173 commit f4b4195
Show file tree
Hide file tree
Showing 9 changed files with 657 additions and 62 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ RUN mkdir -p src/main/java && \

USER ${APP_USER}

RUN gradle openApiGenerate dependencies --no-daemon

#
# 🏗️ Build Stage
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# p4pa-organization

To update the `generated.openapi` file, execute the `gradle generateOpenApiDocs` command.
Ensure VPN connectivity is active to access required resources.
28 changes: 0 additions & 28 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -88,40 +88,12 @@ configurations {
}
}

tasks.compileJava {
dependsOn("openApiGenerate")
}

openApi {
apiDocsUrl.set("http://localhost:8080/v3/api-docs")
outputDir.set(file("$projectDir/openapi"))
outputFileName.set("generated.openapi.json")
}

configure<SourceSetContainer> {
named("main") {
java.srcDir("$projectDir/build/generated/src/main/java")
}
}

springBoot {
mainClass.value("it.gov.pagopa.pu.organization.OrganizationApplication")
}

openApiGenerate {
generatorName.set("spring")
inputSpec.set("$rootDir/openapi/template-payments-java-repository.openapi.yaml")
outputDir.set("$projectDir/build/generated")
apiPackage.set("it.gov.pagopa.template.controller.generated")
modelPackage.set("it.gov.pagopa.template.model.generated")
configOptions.set(mapOf(
"dateLibrary" to "java8",
"requestMappingMode" to "api_interface",
"useSpringBoot3" to "true",
"interfaceOnly" to "true",
"useTags" to "true",
"generateConstructorWithAllArgs" to "false",
"generatedConstructorWithRequiredArgs" to "false",
"additionalModelTypeAnnotations" to "@lombok.Data @lombok.Builder @lombok.AllArgsConstructor @lombok.RequiredArgsConstructor"
))
}
Empty file modified gradlew
100755 → 100644
Empty file.
Loading

0 comments on commit f4b4195

Please sign in to comment.