Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Can we use this for non-JAXRS project? #2

Open
adcoolguy opened this issue Nov 8, 2015 · 3 comments
Open

Question: Can we use this for non-JAXRS project? #2

adcoolguy opened this issue Nov 8, 2015 · 3 comments

Comments

@adcoolguy
Copy link

We have just servlet based project which returns JSON response in a POJO class. If so, what do we need to change in this project?

Thanks!

@reta
Copy link
Owner

reta commented Nov 9, 2015

Hi! Yes, although this project shows off JAX-RS integration, you can use Swagger with servlet based project. Please take a look on https://github.com/swagger-api/swagger-core and particularly on https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-servlet module.

Hope it helps!
Thanks!

@adcoolguy
Copy link
Author

We did mvn install, it build with some errors and stuck there. With mvn jetty:run, we hit http://localhost:8080/swagger but nothing came up. Any advise on what we miss?

@reta
Copy link
Owner

reta commented Nov 10, 2015

Hi! I would be happy to help, could you please paste the errors in the issue? The project is not supposed to be run using Jetty plugin but:

mvn clean install
java -jar target/<jar-file>.jar

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants