-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SpringDoc #538
Add SpringDoc #538
Conversation
Huge work @Bolo89 ! |
Codecov Report
@@ Coverage Diff @@
## main #538 +/- ##
===========================================
Coverage 100.00% 100.00%
- Complexity 846 863 +17
===========================================
Files 155 160 +5
Lines 2582 2643 +61
Branches 57 57
===========================================
+ Hits 2582 2643 +61
Continue to review full report at Codecov.
|
...main/java/tech/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDoc.java
Outdated
Show resolved
Hide resolved
...h/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocDomainService.java
Show resolved
Hide resolved
...h/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocDomainService.java
Outdated
Show resolved
Hide resolved
.../tech/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocConstants.java
Outdated
Show resolved
Hide resolved
.../tech/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocConstants.java
Outdated
Show resolved
Hide resolved
.../tech/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocConstants.java
Outdated
Show resolved
Hide resolved
.../tech/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocConstants.java
Outdated
Show resolved
Hide resolved
.../tech/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocConstants.java
Outdated
Show resolved
Hide resolved
.../tech/jhipster/lite/generator/server/springboot/mvc/springdoc/domain/SpringDocConstants.java
Outdated
Show resolved
Hide resolved
...resources/generator/server/springboot/mvc/springdoc/src/SpringDocConfiguration.java.mustache
Outdated
Show resolved
Hide resolved
Not related to this PR, but we have 2 possible uses cases about Security 1st use case:
2nd use case:
Let's do this in another PR, I have some ideas, using Spring Events Related to this answer https://stackoverflow.com/questions/59357205/springdoc-openapi-apply-default-global-securityscheme-possible , the security part to add could be something like: .components(
new Components()
.addSecuritySchemes(
"bearer-jwt",
new SecurityScheme()
.type(SecurityScheme.Type.HTTP)
.scheme("Bearer")
.bearerFormat("JWT")
.in(SecurityScheme.In.HEADER)
.name("bearerAuth")
)
)
.addSecurityItem(new SecurityRequirement().addList("bearer-jwt", Arrays.asList("read", "write"))) |
Hello, |
@Bolo89 : approved! Thanks so much for your 1st contribution |
Hello,
Example :