Giter Club home page Giter Club logo

Comments (7)

federecio avatar federecio commented on August 15, 2024

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.

federecio avatar federecio commented on August 15, 2024

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.

esiqveland avatar esiqveland commented on August 15, 2024

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.

external-torx avatar external-torx commented on August 15, 2024

+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:

screen shot 2014-09-13 at 11 05 50 am

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.

external-torx avatar external-torx commented on August 15, 2024

Hah. In my Application I had another asset bundle registered for some other UI. I removed that and suddenly everything worked.

from dropwizard-swagger.

federecio avatar federecio commented on August 15, 2024

Good to hear it's working @meleemistress

from dropwizard-swagger.

esiqveland avatar esiqveland commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.