Comments (3)
Hey, I also needed the plugin to generate multiple files for each GroupedOpenApi
so what I did using maven was something like this:
-
I defined 2
GroupedOpenApi
: public and private -
I changed the plugin to execute each group on it's own:
<plugin>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-maven-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>public-openapi</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<apiDocsUrl>http://server:port/context-path/v3/api-docs/public</apiDocsUrl>
<outputFileName>openapi-public.yaml</outputFileName>
<outputDir>${project.basedir}/src/main/</outputDir>
<skip>false</skip>
</configuration>
</execution>
<execution>
<id>admin-openapi</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<apiDocsUrl>http://server:port/context-path/v3/api-docs/private</apiDocsUrl>
<outputFileName>openapi-admin.yaml</outputFileName>
<outputDir>${project.basedir}/src/main/</outputDir>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
Hope it helps
from springdoc-openapi-maven-plugin.
Thanks, but we need a solution that is dynamic (in terms of number of APIs) rather than hardcoded.
from springdoc-openapi-maven-plugin.
Possible duplicate of springdoc/springdoc-openapi#2539
from springdoc-openapi-maven-plugin.
Related Issues (20)
- Auto JSON format openapi.json HOT 5
- html output HOT 1
- Created Openapi.json file changes each time HOT 1
- There is no way to generate multiple open api files in one plugin config HOT 1
- The outputFileName property should not start with "/"
- Runtime or buildtime? HOT 1
- Plugin do not generate java.util.Date correctly HOT 1
- Plugin does not generate responses correctly HOT 1
- Plugin does not generate list of objects correctly HOT 1
- Actual build-time capability without a running server HOT 3
- Plugin does not generate specification HOT 1
- Are there locations configuration? HOT 1
- Generate api document by Maven plugin during compilation HOT 1
- Add "failOnError" option HOT 1
- Error while working with context-path HOT 2
- Add ability to set title for openapi specification HOT 1
- Setting all imports with full path HOT 1
- springdoc.swagger-ui.tryItOutEnabled boolean value is inverted
- Generate OpenAPI documentation at build/compile time in SpringBoot 3.x application
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springdoc-openapi-maven-plugin.