Comments (4)
To further clarify this. I'm just trying to add openapi details programmatically. I currently have annotations on my RouterFunctions and HandlerFunctions. But a lot of these are exactly the same except for operationId and return types, so I'm trying to create some generic functions to apply the openapi information to them. To do this, I need to use the programmatic openapi interface. The only way I can see to do this is with the org.springdoc.core.fn.builders.apiresponse.Builder api and somehow attach it to the RouterFunction. But i don't see any way to do that, since the methods in the examples don't exist in the latest spring webflux.
from springdoc.github.io.
Hey, so I think this is a documentation issue. On the main springdoc page for the programmatic openapi feature, you should point out that the route()
method in your example is not the normal route()
method from functional spring webflux routing. Looking more closely at the example code and javadocs, I see you have a SpringdocRouteBuilder.route() that is completely different than the normal spring RouterFunctions.route() method that people are used to calling.
The fact these are different methods isn't mentioned in your documentation, and since you do a static import in the example code, it was really easy to miss.
from springdoc.github.io.
If you have bugs in the documentation, please feel free to update directly the related .adoc
files.
from springdoc.github.io.
closed as no activity
from springdoc.github.io.
Related Issues (20)
- favicon same a Spring project. HOT 1
- FAQ 11.45 Wrong dependency?
- document which regex dialect use use/support with sprindoc-openapi HOT 2
- Clarify compatibility matrix HOT 1
- swagger-ui is not showing "select a definition" instead shows Explore option with text box HOT 7
- @ParameterObject: there are no parameters if there are no get methods in the model. HOT 2
- Customizing swagger static resources HOT 1
- A bit more Gradle plugin docs, please? HOT 3
- Kotlin module for v2? HOT 4
- Misleading docs - web UI url's HOT 1
- In FAQ section 13.24, the Apache 2 RequestHeader configuration syntax is incorrect HOT 1
- Document code Migrating spring fox is not correct HOT 1
- Remove references to springdoc-openapi-starter-common HOT 1
- For SpringDoc OpenAPI 1.6, Swagger UI unable to render definition HOT 7
- "Deep Linking documentation" - broken link
- Removing webjars-locator-core broke using a provided spec.
- Non-existing class in documentation HOT 5
- Wrong springboot version for reverse proxy faq HOT 1
- validatorUrl description does not match the actual code
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.github.io.