Comments (7)
Thanks for reaching out.
Is that error preventing you to get a response from your API? If yes, can you please try the following sample app? https://github.com/federecio/dropwizard-swagger-sample-app
from dropwizard-swagger.
There's a always a chance of some misconfiguration so taking a look at the sample app might help you spot the problem.
from dropwizard-swagger.
Hey thanks for quick response. It does not affect the api response as I first thought. I can check the configuration on Monday but I'm pretty sure it's by the docs.
from dropwizard-swagger.
+1
Seems like dropwizard doesn't know where the static assets are in my app. I've tried the sample app and it works fine. How does the swagger-static directory get created in the packaged jar?
For reference, this is what I get when I use your lib in my app:
My yml file:
server:
type: simple
applicationContextPath: /
connector:
type: http
port: 8080
jpa:
debug: true
persistenceUnit: CoRE
properties:
openjpa.EntityManagerFactoryPool: true
openjpa.jdbc.DriverDataSource: dbcp
openjpa.ConnectionUserName: ${testing.db.login}
openjpa.ConnectionPassword: ${testing.db.password}
openjpa.ConnectionURL: jdbc:postgresql://${testing.db.server}:${testing.db.port}/${testing.db.database}
openjpa.ConnectionDriverName: org.postgresql.Driver
openjpa.ConnectionFactoryProperties: PrettyPrint=true, PrettyPrintLineLength=80, PrintParameters=true
from dropwizard-swagger.
Hah. In my Application I had another asset bundle registered for some other UI. I removed that and suddenly everything worked.
from dropwizard-swagger.
Good to hear it's working @meleemistress
from dropwizard-swagger.
I am still getting a 404 on that gif:
"GET /images/throbber.gif HTTP/1.1" 404 - "http://localhost:9020/swagger"
I don't have any other bundles registered.
It isn't even that important, I think it's just a gif that spins while you are trying a out an api call.
Confirmed it exists in the sample app as well (https://github.com/federecio/dropwizard-swagger-sample-app):
"GET /images/throbber.gif HTTP/1.1" 404 - "http://localhost:9999/swagger"
from dropwizard-swagger.
Related Issues (20)
- Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 4.0.0) or downgrade your runtime to an older version (>= 2.0.0-beta.1) HOT 1
- NoSuchMethodError: org.apache.commons.lang3.StringUtils HOT 3
- Disable Try It Out Button
- API page stuck at fetching resource list http://localhost/api/swagger.json
- Multiple swagger related endpoints published
- Dropwizard with @Auth issues
- You need to provide an instance of SwaggerBundleConfiguration error while running the sample app provided in the swagger documentation
- Jakarta XML support HOT 1
- FR: Support for Dropwizard 3.0
- FR: Support for Dropwizard 4.0 HOT 1
- SwaggerBundleConfiguration schemes default
- 2.2 POM is broken in Maven Central HOT 1
- File button not showing up on swagger ui HOT 2
- SwaggerBundleConfig variables HOT 2
- Dropwizard 1.0.0 support HOT 1
- dropwizard-swagger doesn't work with dropwizard version 1.0.0 HOT 5
- Error while Running dropwizard-swagger HOT 1
- Value.Immutable classes
- Allow to define custom swagger path HOT 4
- swagger not running behind nginx. static context not loading
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 dropwizard-swagger.