CHJani / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Handle case where default value for alt parameter is not "json" #346

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

https://www.googleapis.com/discovery/v1/apis/buzz/v1/rest

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

Currently the generator for the Buzz API is broken because we are not including 
an alt parameter in requests to Google APIs, but the default value of alt for 
Buzz is "atom".  Previously we were always sending alt=json which worked, but 
was more verbose than necessary for the majority of cases where "json" is the 
default.

Although Buzz is deprecated so we don't care about that specific case, in 
theory it would be good to handle this properly in case it comes up again.  For 
example, some APIs in the future may choose alt=proto as the default, and we 
want to be robust to it.

Monsur proposed a solution I like: check if "json" is the default value, and 
only if it is not specify alt=json.

Original issue reported on code.google.com by yan...@google.com on 7 Nov 2011 at 8:21

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 9 Mar 2012 at 5:17

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 27 Mar 2012 at 2:10

GoogleCodeExporter commented 9 years ago
Fixed in the generated libraries

Original comment by rmis...@google.com on 20 Apr 2012 at 1:34