Re: Swagger Relative Basepath

2016-12-27 Thread Shyju Karayi
Hi I have created a class as you mentioned and implemented doFilter method, but this method is not invoking while server starts. I have added the below config in web.xml apidoc-config com.test.servlet.SwaggerConfigFilter apidoc-config /api-docs/* and On Tuesday, Ap

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-27 Thread Ron Ratovsky
At this point, I’d ask that you provide a sample app that reproduces it – would be difficult to try and debug it otherwise. From: on behalf of janet vanderpuye Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 27 December 2016 at 14:36 To: Swagger Subject: Re: Cant

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-27 Thread janet vanderpuye
Yeah, that is what I have now. I have commented out the part where I use the multipackages. When I use one package, it partially works. I get only the data within the @Info annotations but nothing from the @API annotations. On Tuesday, 27 December 2016 17:05:29 UTC-5, Ron wrote: > > For the ‘res

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-27 Thread Ron Ratovsky
For the ‘resource scanning’ that is. From: on behalf of Ron Ratovsky Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 27 December 2016 at 14:04 To: "swagger-swaggersocket@googlegroups.com" Subject: Re: Cant locate swagger.json on java + embedded jetty + httpservlet +

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-27 Thread Ron Ratovsky
Okay, since you mentioned using two packages isn’t working, what happens if you only set com.coreservices.servlet for the resource packing? From: on behalf of janet vanderpuye Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 27 December 2016 at 13:06 To: Swagger Su

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-27 Thread janet vanderpuye
Maybe. Here is what I have so far. Main.java import org.eclipse.jetty.server.Server; import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; import io.swagger.servlet.listing.ApiDeclarationServlet; import io.swagger.servlet.config.DefaultServletConfi

Re: How can I set "collectionFormat" using swagger annotation?

2016-12-27 Thread Vic
yes, you're correct. On Friday, December 23, 2016 at 3:06:03 PM UTC+13, Ron wrote: > > The default value is irrelevant. It’s up to the tool to know which value > fits to the situation, and the maven plugin doesn’t translate it correctly. > > > > > > > > *From: *> on behalf of Vic < > vic.l

Re: Can't get swagger.json

2016-12-27 Thread Ron Ratovsky
Which version of swagger-core do you use? What URL do you use to access your API? The swagger.json? From: on behalf of Dali Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 27 December 2016 at 10:16 To: Swagger Subject: Can't get swagger.json Hello, I tri

Can't get swagger.json

2016-12-27 Thread Dali
Hello, I tried to integrate swagger on java + embedded jetty project but i can't get swagger.json file. I'm always getting 404 not found error on any path combination. I think swagger is not scanning my packages !?! Main.java public class ApiServer { public static void main(String[] args

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-27 Thread Ron Ratovsky
The web.xml is not the only way to configure it, and I think you’ve went with different approach(es). What did you end up using? From: on behalf of janet vanderpuye Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 27 December 2016 at 8:21 To: Swagger Subject: Re: C

Re: MVC basePAth

2016-12-27 Thread Ron Ratovsky
You would need to check Swashbuckle’s documentation, and if it’s not there, open a ticket on their project. From: on behalf of Tony K Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 27 December 2016 at 4:33 To: Swagger Subject: Re: MVC basePAth i have download

Re: Cant locate swagger.json on java + embedded jetty + httpservlet + swagger integration

2016-12-27 Thread janet vanderpuye
Hi, thanks for the feedback. I will create the ticket for the multiple packages. I did look at the servlet sample you linked here. I followed that example and updated to the latest code i posted above. The only difference now between my implemetation and that sample was I did not use a web.xml

Re: MVC basePAth

2016-12-27 Thread Tony K
i have downloaded the latest version of swashbuckle from nuget . I am currently working on SwaggerConfig.cs on app_start. On Friday, December 23, 2016 at 5:07:47 PM UTC+2, Ron wrote: > > Okay, and what do you use for Swagger? > > > > > > > > *From: *> on behalf of Tony > K > > *Reply-To: