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

2017-03-08 Thread caldercarey via Swagger


On Wed, 3/8/17, Ron Ratovsky <r...@swagger.io> wrote:

 Subject: Re: Swagger-ui does not use the right produces consumes 
application/json
 To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
 Date: Wednesday, March 8, 2017, 10:41 PM
 
 #yiv0069152825
 #yiv0069152825 --
  
  _filtered #yiv0069152825 {font-family:Arial;panose-1:2 11 6
 4 2 2 2 2 2 4;}
  _filtered #yiv0069152825 {panose-1:2 4 5 3 5 4 6 3 2 4;}
  _filtered #yiv0069152825 {font-family:Calibri;panose-1:2 15
 5 2 2 2 4 3 2 4;}
  _filtered #yiv0069152825 {font-family:Menlo;panose-1:2 11 6
 9 3 8 4 2 2 4;}
  _filtered #yiv0069152825 {font-family:Consolas;panose-1:2
 11 6 9 2 2 4 3 2 4;}
  _filtered #yiv0069152825 {font-family:Tahoma;panose-1:2 11
 6 4 3 5 4 4 2 4;}
 #yiv0069152825  
 #yiv0069152825 p.yiv0069152825MsoNormal, #yiv0069152825
 li.yiv0069152825MsoNormal, #yiv0069152825
 div.yiv0069152825MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}
 #yiv0069152825 a:link, #yiv0069152825
 span.yiv0069152825MsoHyperlink
{color:blue;text-decoration:underline;}
 #yiv0069152825 a:visited, #yiv0069152825
 span.yiv0069152825MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
 #yiv0069152825 p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;}
 #yiv0069152825 span.yiv0069152825EmailStyle18
{font-family:Calibri;color:windowtext;}
 #yiv0069152825 span.yiv0069152825msoIns
{text-decoration:underline;color:teal;}
 #yiv0069152825 .yiv0069152825MsoChpDefault
{font-size:10.0pt;}
  _filtered #yiv0069152825 {margin:72.0pt 72.0pt 72.0pt
 72.0pt;}
 #yiv0069152825 div.yiv0069152825WordSection1
{}
 #yiv0069152825 The
 information is available in the project’s wiki
 pages.
  
  
  From:
 <swagger-swaggersocket@googlegroups.com>
 on behalf of "yase...@soliditech.com"
 <yase...@soliditech.com>
 Reply-To:
 "swagger-swaggersocket@googlegroups.com"
 <swagger-swaggersocket@googlegroups.com>
 Date: Wednesday, 8 March 2017 at
 12:38
 To: Swagger
 <swagger-swaggersocket@googlegroups.com>
 Subject: Re: Swagger-ui does not use the
 right produces consumes
 application/json  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 just a
 bug. It doesn’t affect the functionality of the app. Since
 we’re working on a new version, it will be fixed
 there.   From:
 <swagger-sw...@googlegroups.com> on
 behalf of "yas...@soliditech.com" <yas...@soliditech.com>
 Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
 Date: Wednesday, 8 March 2017 at
 12:33
 To: Swagger <swagger-sw...@googlegroups.com>
 Subject: Re: Swagger-ui does not use the
 right produces consumes
 application/json Oh okay I thought it
 read the swagger.json file and tried to build up the path
 for the curl command? If so did you have some time to look
 into if it is an error with the curl command generation?
 
 On Wednesday, March 8, 2017 at
 10:29:27 PM UTC+2, Ron wrote: Setting the
 basePath should have no effect on the output of the curl
 command.   From:
 <swagger-sw...@googlegroups.com>
 on behalf of "yas...@soliditech.com"
 <yas...@soliditech.com>
 Reply-To:
 "swagger-sw...@googlegroups.com"
 <swagger-sw...@googlegroups.com>
 Date: Wednesday, 8 March 2017 at
 12:27
 To: Swagger
 <swagger-sw...@googlegroups.com>
 Subject: Re: Swagger-ui does not use the
 right produces consumes
 application/json Hey Ron,  I think the issue is
 that fact that the basePath is not being set on the
 swagger.json file @ runtime. If i set the basePath in the
 web.xml file then it works. The thing is i cant have the
 base path set in the web.xml I'm currently setting it in
 my boostrap class but thats not appending the basePath. I
 tried using my own version of DefaultJaxrsConfig where i
 would override the swagger.api.basepath setting, but it did
 not work. 
 
 On Wednesday,
 March 8, 2017 at 9:41:15 PM UTC+2, Ron wrote:
 Thanks, that
 helps.So if you look
 at those headers, you’ll see the `Accept` is set correctly
 to `application/json`.There might be
 an issue with the curl command generation, but the UI itself
 executes the call correctly.   From:
 <swagger-sw...@googlegroups.com>
 on behalf of "yas...@soliditech.com"
 <yas...@soliditech.com>
 Reply-To:
 "swagger-sw...@googlegroups.com"
 <swagger-sw...@googlegroups.com>
 Date: Wednesday, 8 March 2017 at
 11:19
 To: Swagger
 <swagger-sw...@googlegroups.com>
 Subject: Re: Swagger-ui does not use the
 right produces consumes
 application/json Hi Ron,  Request
 Headers

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

2017-03-08 Thread Ron Ratovsky
The information is available in the project’s wiki pages.

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of 
"yase...@soliditech.com" <yase...@soliditech.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Wednesday, 8 March 2017 at 12:38
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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 just a bug. It doesn’t affect the functionality of the app. Since we’re 
working on a new version, it will be fixed there.

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 12:33
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

Oh okay I thought it read the swagger.json file and tried to build up the path 
for the curl command? If so did you have some time to look into if it is an 
error with the curl command generation?

On Wednesday, March 8, 2017 at 10:29:27 PM UTC+2, Ron wrote: 

Setting the basePath should have no effect on the output of the curl command.

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 12:27
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

Hey Ron, 

 

I think the issue is that fact that the basePath is not being set on the 
swagger.json file @ runtime. If i set the basePath in the web.xml file then it 
works. The thing is i cant have the base path set in the web.xml I'm currently 
setting it in my boostrap class but thats not appending the basePath. I tried 
using my own version of DefaultJaxrsConfig where i would override the 
swagger.api.basepath setting, but it did not work. 

On Wednesday, March 8, 2017 at 9:41:15 PM UTC+2, Ron wrote: 

Thanks, that helps.

So if you look at those headers, you’ll see the `Accept` is set correctly to 
`application/json`.

There might be an issue with the curl command generation, but the UI itself 
executes the call correctly.

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 11:19
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

Hi Ron, 

 

Request Headers:

Accept:

application/json

Accept-Encoding:

gzip, deflate, sdch, br

Accept-Language:

en-US,en;q=0.8

Authorization: XXX

Connection:

keep-alive

Host:

localhost:8008

 

Response Headers:

Content-Length:

1182

Content-Type:

text/html;charset=ISO-8859-1

Date:

Wed, 08 Mar 2017 19:04:46 GMT

Server:

Apache-Coyote/1.1

 

Request URL:

http://localhost:8008/promocodes/getActivePromoCodes/pathParam

Request Method:

GET

Status Code:

404 Not Found

 

Remote Address:

[::1]:8008

 

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 something specific?

 

You also say that the curl command is outputted that way. Can you check the web 
console of your browser to see what’s actually being sent?

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 10:12
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 10:03
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re:

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 just a bug. It doesn’t affect the functionality of the app. Since 
> we’re working on a new version, it will be fixed there.
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com > on behalf of "
> yas...@soliditech.com " <yas...@soliditech.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Wednesday, 8 March 2017 at 12:33
> *To: *Swagger <swagger-sw...@googlegroups.com >
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> Oh okay I thought it read the swagger.json file and tried to build up the 
> path for the curl command? If so did you have some time to look into if it 
> is an error with the curl command generation?
>
> On Wednesday, March 8, 2017 at 10:29:27 PM UTC+2, Ron wrote: 
>
> Setting the basePath should have no effect on the output of the curl 
> command.
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 12:27
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> Hey Ron, 
>
>  
>
> I think the issue is that fact that the basePath is not being set on the 
> swagger.json file @ runtime. If i set the basePath in the web.xml file then 
> it works. The thing is i cant have the base path set in the web.xml I'm 
> currently setting it in my boostrap class but thats not appending the 
> basePath. I tried using my own version of DefaultJaxrsConfig where i would 
> override the swagger.api.basepath setting, but it did not work. 
>
> On Wednesday, March 8, 2017 at 9:41:15 PM UTC+2, Ron wrote: 
>
> Thanks, that helps.
>
> So if you look at those headers, you’ll see the `Accept` is set correctly 
> to `application/json`.
>
> There might be an issue with the curl command generation, but the UI 
> itself executes the call correctly.
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 11:19
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> Hi Ron, 
>
>  
>
> Request Headers:
>
> *Accept:*
>
> application/json
>
> *Accept-Encoding:*
>
> gzip, deflate, sdch, br
>
> *Accept-Language:*
>
> en-US,en;q=0.8
>
> *Authorization: XXX*
>
> *Connection:*
>
> keep-alive
>
> *Host:*
>
> localhost:8008
>
>  
>
> *Response Headers:*
>
> *Content-Length:*
>
> 1182
>
> *Content-Type:*
>
> text/html;charset=ISO-8859-1
>
> *Date:*
>
> Wed, 08 Mar 2017 19:04:46 GMT
>
> *Server:*
>
> Apache-Coyote/1.1
>
>  
>
> *Request URL:*
>
> http://localhost:8008/promocodes/getActivePromoCodes/pathParam
>
> *Request Method:*
>
> GET
>
> *Status Code:*
>
> 404 Not Found
>
>  
>
> *Remote Address:*
>
> [::1]:8008
>
>  
>
> 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 something specific?
>
>  
>
> You also say that the curl command is outputted that way. Can you check 
> the web console of your browser to see what’s actually being sent?
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 10:12
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> Hi Ron, 
>
>  
>
> Sorry about that, I am using version v2.2.10
>
&

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

2017-03-08 Thread Ron Ratovsky
Thanks, that helps.

So if you look at those headers, you’ll see the `Accept` is set correctly to 
`application/json`.

There might be an issue with the curl command generation, but the UI itself 
executes the call correctly.

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of 
"yase...@soliditech.com" <yase...@soliditech.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Wednesday, 8 March 2017 at 11:19
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

Hi Ron, 

 

Request Headers:

Accept:

application/json

Accept-Encoding:

gzip, deflate, sdch, br

Accept-Language:

en-US,en;q=0.8

Authorization: XXX

Connection:

keep-alive

Host:

localhost:8008

 

Response Headers:

Content-Length:

1182

Content-Type:

text/html;charset=ISO-8859-1

Date:

Wed, 08 Mar 2017 19:04:46 GMT

Server:

Apache-Coyote/1.1

 

Request URL:

http://localhost:8008/promocodes/getActivePromoCodes/pathParam

Request Method:

GET

Status Code:

404 Not Found

 

Remote Address:

[::1]:8008

 

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 something specific?

 

You also say that the curl command is outputted that way. Can you check the web 
console of your browser to see what’s actually being sent?

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 10:12
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 10:03
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 9:51
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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: 
http://localhost:8008/org/rest/swagger/test/getValues/pathParam

 

>From what i understand this is the suppose to be the basePath 
>:org/rest/swagger right?

On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote: 

We’d need to know the version of swagger-ui you’re using and a spec that 
reproduces the problem.

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 5:34
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Swagger-ui does not use the right produces consumes application/json

 

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' 'http://localhost:8008/test/getValues/pathParam'

 

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop recei

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 something specific?
>
>  
>
> You also say that the curl command is outputted that way. Can you check 
> the web console of your browser to see what’s actually being sent?
>
>  
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com > on behalf of "
> yas...@soliditech.com " <yas...@soliditech.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Wednesday, 8 March 2017 at 10:12
> *To: *Swagger <swagger-sw...@googlegroups.com >
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 10:03
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 9:51
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: 
> http://localhost:8008/org/rest/swagger/test/getValues/pathParam
>
>  
>
> From what i understand this is the suppose to be the basePath 
> :org/rest/swagger right?
>
> On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote: 
>
> We’d need to know the version of swagger-ui you’re using and a spec that 
> reproduces the problem.
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 5:34
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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' '
> http://localhost:8008/test/getValues/pathParam'
>
>  
>
> Thanks in advance!
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email 

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: *<swagger-sw...@googlegroups.com > on behalf of "
> yas...@soliditech.com " <yas...@soliditech.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Wednesday, 8 March 2017 at 10:03
> *To: *Swagger <swagger-sw...@googlegroups.com >
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 9:51
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: 
> http://localhost:8008/org/rest/swagger/test/getValues/pathParam
>
>  
>
> From what i understand this is the suppose to be the basePath 
> :org/rest/swagger right?
>
> On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote: 
>
> We’d need to know the version of swagger-ui you’re using and a spec that 
> reproduces the problem.
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 5:34
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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' '
> http://localhost:8008/test/getValues/pathParam'
>
>  
>
> Thanks in advance!
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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: *<swagger-sw...@googlegroups.com > on behalf of "
> yas...@soliditech.com " <yas...@soliditech.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Wednesday, 8 March 2017 at 10:03
> *To: *Swagger <swagger-sw...@googlegroups.com >
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 9:51
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: 
> http://localhost:8008/org/rest/swagger/test/getValues/pathParam
>
>  
>
> From what i understand this is the suppose to be the basePath 
> :org/rest/swagger right?
>
> On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote: 
>
> We’d need to know the version of swagger-ui you’re using and a spec that 
> reproduces the problem.
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 5:34
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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' '
> http://localhost:8008/test/getValues/pathParam'
>
>  
>
> Thanks in advance!
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-03-08 Thread Ron Ratovsky
You gotta help me out more. There are several versions listed there.

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of 
"yase...@soliditech.com" <yase...@soliditech.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Wednesday, 8 March 2017 at 10:03
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 9:51
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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: 
http://localhost:8008/org/rest/swagger/test/getValues/pathParam

 

>From what i understand this is the suppose to be the basePath 
>:org/rest/swagger right?

On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote: 

We’d need to know the version of swagger-ui you’re using and a spec that 
reproduces the problem.

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 5:34
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Swagger-ui does not use the right produces consumes application/json

 

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' 'http://localhost:8008/test/getValues/pathParam'

 

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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: *<swagger-sw...@googlegroups.com > on behalf of "
> yas...@soliditech.com " <yas...@soliditech.com >
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Wednesday, 8 March 2017 at 9:51
> *To: *Swagger <swagger-sw...@googlegroups.com >
> *Subject: *Re: Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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: 
> http://localhost:8008/org/rest/swagger/test/getValues/pathParam
>
>  
>
> From what i understand this is the suppose to be the basePath 
> :org/rest/swagger right?
>
> On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote: 
>
> We’d need to know the version of swagger-ui you’re using and a spec that 
> reproduces the problem.
>
>  
>
>  
>
> *From: *<swagger-sw...@googlegroups.com> on behalf of "
> yas...@soliditech.com" <yas...@soliditech.com>
> *Reply-To: *"swagger-sw...@googlegroups.com" <
> swagger-sw...@googlegroups.com>
> *Date: *Wednesday, 8 March 2017 at 5:34
> *To: *Swagger <swagger-sw...@googlegroups.com>
> *Subject: *Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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' '
> http://localhost:8008/test/getValues/pathParam'
>
>  
>
> Thanks in advance!
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2017-03-08 Thread Ron Ratovsky
When you say latest version of swagger-ui, are you talking about the latest 
released version or master?

 

 

 

From: <swagger-swaggersocket@googlegroups.com> on behalf of 
"yase...@soliditech.com" <yase...@soliditech.com>
Reply-To: "swagger-swaggersocket@googlegroups.com" 
<swagger-swaggersocket@googlegroups.com>
Date: Wednesday, 8 March 2017 at 9:51
To: Swagger <swagger-swaggersocket@googlegroups.com>
Subject: Re: Swagger-ui does not use the right produces consumes 
application/json

 

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: 
http://localhost:8008/org/rest/swagger/test/getValues/pathParam

 

>From what i understand this is the suppose to be the basePath 
>:org/rest/swagger right?

On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote: 

We’d need to know the version of swagger-ui you’re using and a spec that 
reproduces the problem.

 

 

From: <swagger-sw...@googlegroups.com> on behalf of "yas...@soliditech.com" 
<yas...@soliditech.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Wednesday, 8 March 2017 at 5:34
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Swagger-ui does not use the right produces consumes application/json

 

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' 'http://localhost:8008/test/getValues/pathParam'

 

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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: http://localhost:8008/org/rest/swagger/test/getValues/pathParam

>From what i understand this is the suppose to be the basePath 
:org/rest/swagger right?

On Wednesday, March 8, 2017 at 6:26:10 PM UTC+2, Ron wrote:
>
> We’d need to know the version of swagger-ui you’re using and a spec that 
> reproduces the problem.
>
>  
>
>  
>
> *From: * on behalf of "
> yas...@soliditech.com " 
> *Reply-To: *"swagger-sw...@googlegroups.com " <
> swagger-sw...@googlegroups.com >
> *Date: *Wednesday, 8 March 2017 at 5:34
> *To: *Swagger 
> *Subject: *Swagger-ui does not use the right produces consumes 
> application/json
>
>  
>
> 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' '
> http://localhost:8008/test/getValues/pathParam'
>
>  
>
> Thanks in advance!
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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" : "1.0.0",
"title" : ""
  },
  "tags" : [ {
"name" : "PromoCodeProductsResource"
  }, {
"name" : "PromoCodesResource"
  } ],
  "schemes" : [ "http", "https" ],
  "paths" : {
"/promocodeproducts/getPromoCodeProductsByPromoCode/{promocode}" : {
  "get" : {
"tags" : [ "PromoCodeProductsResource" ],
"summary" : "Returns a promo code product for the specified promo 
code",
"description" : "",
"operationId" : "getPromoCodeProductsByPromoCode",
"produces" : [ "application/json" ],
"parameters" : [ {
  "name" : "promocode",
  "in" : "path",
  "description" : "promocode",
  "required" : true,
  "type" : "string"
} ],
"responses" : {
  "200" : {
"description" : "successful operation",
"schema" : {
  "$ref" : "#/definitions/PromoCodeProductsResponse"
}
  },
  "400" : {
"description" : "Invalid Promo Code supplied"
  },
  "404" : {
"description" : "Promo Code Products not found"
  }
}
  }
},
"/promocodes/getActivePromoCodes/{saleschannel}" : {
  "get" : {
"tags" : [ "PromoCodesResource" ],
"summary" : "List of all promo codes for the specified sales 
channel",
"description" : "",
"operationId" : "getActivePromoCodes",
"produces" : [ "application/json" ],
"parameters" : [ {
  "name" : "saleschannel",
  "in" : "path",
  "description" : "saleschannel",
  "required" : true,
  "type" : "string"
} ],
"responses" : {
  "200" : {
"description" : "successful operation",
"schema" : {
  "$ref" : "#/definitions/PromoCodeResponse"
}
  },
  "400" : {
"description" : "Invalid Sales Channel supplied"
  },
  "404" : {
"description" : "Promo Codes not found"
  }
}
  }
}
  },
  "securityDefinitions" : {
"basicAuth" : {
  "description" : "",
  "type" : "basic"
}
  },
  "definitions" : {
"PromoCodeProductsResponse" : {
  "type" : "object",
  "properties" : {
"productCode" : {
  "type" : "string"
},
"promoCodeProducts" : {
  "type" : "array",
  "description" : "List of Promo Codes",
  "items" : {
"$ref" : "#/definitions/JsonPromoCodeProduct"
  }
}
  }
},
"PromoCodeResponse" : {
  "type" : "object",
  "properties" : {
"promoCodes" : {
  "type" : "array",
  "items" : {
"$ref" : "#/definitions/JsonPromoCode"
  }
}
  }
},
"JsonPromoCodeProduct" : {
  "type" : "object",
  "properties" : {
"productCode" : {
  "type" : "string",
  "description" : "Product Code"
},
"lineSpeed" : {
  "type" : "integer",
  "format" : "int32",
  "description" : "Line Speed"
},
"productName" : {
  "type" : "string",
  "description" : "Product Name"
},
"productDescription" : {
  "type" : "string",
  "description" : "Product Description"
},
"productRate" : {
  "type" : "number",
  "format" : "double",
  "description" : "Product Rate"
},
"productDiscountType" : {
  "type" : "string",
  "description" : "Product Discount Type"
},
"productDiscountAmount" : {
  "type" : "number",
  "format" : "double",
  "description" : "Product Discount Amount"
},
"productDiscountPeriod" : {
  "type" : "integer",
  "format" : "int32",
  "description" : "Product Discount Period"
},
"productDiscountSequence" : {
  "type" : "integer",
  "format" : "int32",
  "description" : "Product Discount Sequence"
},
"onceOffCharge" : {
  "type" : "boolean",
  "description" : "Has Once Off Charge",
  "default" : false
},
"contractPeriod" : {
  "type" : "integer",
  "format" : "int32",
  "description" : "Product Contract Period"
}
  },
  "description" : "Promo Code Product resource representation"
},
"JsonPromoCode" : {
  "type" : "object",
  "properties" : {
"promoCode" : {
  "type" : "string",
  "description" : "promo code"
},
"promoCodeDescription" : {
   

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

2017-03-08 Thread Ron Ratovsky
We’d need to know the version of swagger-ui you’re using and a spec that 
reproduces the problem.

 

 

From:  on behalf of 
"yase...@soliditech.com" 
Reply-To: "swagger-swaggersocket@googlegroups.com" 

Date: Wednesday, 8 March 2017 at 5:34
To: Swagger 
Subject: Swagger-ui does not use the right produces consumes application/json

 

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' 'http://localhost:8008/test/getValues/pathParam'

 

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.