Re: Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
Hi Ron, Sorry dude, I'm new to github and its processes. I pulled the dist folder from the link i sent you. On Wednesday, March 8, 2017 at 8:08:34 PM UTC+2, Ron wrote: > > You gotta help me out more. There are several versions listed there. > > > > *From: *

Re: Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
Hi Ron, Sorry about that, I am using version v2.2.10 On Wednesday, March 8, 2017 at 8:08:34 PM UTC+2, Ron wrote: > > You gotta help me out more. There are several versions listed there. > > > > *From: * on behalf of " > yas...@soliditech.com "

Re: Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
Also I found on Swagger UI when executing an API call on my resource it leaves out a part of the path for some reason. Maybe that is what causing the above error? Request URL generated by swagger UI: http://localhost:8008/test/getValues/pathParam What the Request URL supposed to look like:

Re: Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
Hi Ron, The version listed here: https://github.com/swagger-api/swagger-ui On Wednesday, March 8, 2017 at 7:59:15 PM UTC+2, Ron wrote: > > When you say latest version of swagger-ui, are you talking about the > latest released version or master? > > > > > > > > *From:

Re: Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
I only downloaded the dist folder, used nothing else. I will check the web console and let you know On Wednesday, March 8, 2017 at 8:50:23 PM UTC+2, Ron wrote: > > Thanks. I’m going to nag you just a bit more. Did you clone the repository > and just use the /dist directory or did you download

Re: Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
Hi Ron, I'm using this version of swagger core https://mvnrepository.com/artifact/io.swagger/swagger-core/1.5.12 and the latest version of Swagger UI. Here is the swagger doc: { "swagger" : "2.0", "info" : { "description" : "This is an API for marketing purposes", "version" :

Re: Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
Oh okay, could you possibly let know if there is any other way to override/update the basePath programmatically? I have tried Boostraping, that did not work. Would implementing my own DefaultJaxrsConfig class do the trick? On Wednesday, March 8, 2017 at 10:35:02 PM UTC+2, Ron wrote: > > It’s

Swagger-ui does not use the right produces consumes application/json

2017-03-08 Thread yaseenf
Hi there, My Swagger UI used to do the API calls correctly, but for some reason now its returning server can't produce text/html. the curl command produced by swagger is: curl -X GET --header 'Accept: text/html' --header 'Authorization: Basic XXX'

Re: Error when browsing to swagger.json file in Browser

2017-03-03 Thread yaseenf
Its because I have a ContainerRequestFilter which handles the processing of the authentication. Will probably have to use something else. On Thursday, March 2, 2017 at 3:13:07 PM UTC+2, Yaseen Foflonker wrote: > > Hi there, > > I am getting the following error {"message":"No authorization