pet-store | React Crash Course Pet Store '' Example | Frontend Framework library
kandi X-RAY | pet-store Summary
kandi X-RAY | pet-store Summary
React Crash Course "Pet Store" Example
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Register new SWF service
- Register a service worker
- get random gun image
- Checks the service to see if it has a valid swagger worker .
- get random data from image
- Unregister the service worker
pet-store Key Features
pet-store Examples and Code Snippets
Community Discussions
Trending Discussions on pet-store
QUESTION
Using the openapi maven plugin:
...ANSWER
Answered 2020-Jan-29 at 17:54I came across your question as I was trying to cope with OAS 3.0 and therefore using the mentioned openapi-generator-maven-plugin
. Meanwhile I got it to generate exactly what you are describing.
I would suggest dealing with this by
- generating your model and API classes to a separate package from your code and
- configuring Spring's
@ComponentScan
annotation to not include the generated classes (either with thebasePackages
property alone or combining it with the explicitexcludeFilters
property).
And yes, modifying generated classes is bad. I'd just use them as a starting point for creating your actual controllers.
Amendment: After configuring the code generation in various ways I found the best solution to have only the API (interfaces) being created. This way I can implement my controller without having another implementation interfering with it.
To achieve this my plugin config now looks like this (using the configOptions/interfaceOnly
option):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pet-store
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page