Comments (2)
I believe this is covered in the docs here:
https://elide.io/pages/guide/v4/13-swagger.html#supporting-oauth
from elide.
Thanks.
What was lacking in the documentation was that we needed to define a bean of type SwaggerController.SwaggerRegistrations
.
Now after adding the code as per the docs, the Authorize button is now enabled but all my JSON api endpoints disappear. See the "No operations in Spec!" part in the screenshot.
My code:
@Bean
public SwaggerController.SwaggerRegistrations buildSwagger2(EntityDictionary dictionary, ElideConfigProperties settings) {
Info info = new Info()
.title(settings.getSwagger().getName())
.version(settings.getSwagger().getVersion());
SwaggerBuilder builder = new SwaggerBuilder(dictionary, info);
Swagger swagger = builder.build()
.basePath(settings.getJsonApi().getPath())
.securityDefinition("JWT Token", new ApiKeyAuthDefinition("Authorization", In.HEADER))
.scheme(Scheme.HTTP);
return new SwaggerController.SwaggerRegistrations(swagger);
}
from elide.
Related Issues (20)
- Unable to update the recursive relationship attribute HOT 1
- How to get 204 response instead of 200 for single end-point HOT 1
- Support RSQL INFIX, POSTFIX, and PREFIX filters on string type that has & character HOT 1
- Incorrect pagination with ToMany filtering In Sub Collection Fetch
- Confusing exception message while using ISO8601DateSerde and epoch date in filter
- Any `CustomErrorException`s thrown within custom code are automatically converted to `WebApplicationException` which discards all error objects HOT 10
- JSON API Atomic Operations support
- The elide-core/elide-spring-boot-starter 7.0.0-pr2 doesn't work with spring-boot 3.0.4 HOT 19
- Spring Boot 3 Native Image support HOT 5
- Is it possible to filter by json fields? HOT 9
- Cannot traverse more than one level up a graph HOT 9
- Overriding `DataFetcherExceptionHandler` has no effect HOT 5
- JSON Patch Operation Read Permission Issue HOT 2
- Does Elide support "speed" (average over date) measure? HOT 1
- "no transaction is in progress" with spring boot and 7.0.0 pr5 HOT 2
- OpenAPIBuilder removes paths for relationships that are 3 levels deep. (7.0.0pr5)
- Generated OAS incorrectly sets objects as nodes
- elide-spring-boot-starter:7.0.0-pr5 doesn't work with spring boot 3.1.1 HOT 5
- CVE-2023-34620 - HJson vulnerability. HOT 2
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 elide.