Closed GoogleCodeExporter closed 9 years ago
As mentioned in the "Getting Started"
(http://code.google.com/p/appengine-rest-server/wiki/GettingStarted), the
"Features" (http://code.google.com/p/appengine-rest-server/wiki/Features) and
the examples
(http://code.google.com/p/appengine-rest-server/source/browse/trunk/example.txt#
202), you can use query parameters to get back a structured key or the entire
object. additionally, if you use the "Accept:" header with just the json type,
you will automatically get back the structured key response as well (as of the
1.0.6 release i believe).
As for defaulting to always using json, see
http://code.google.com/p/appengine-rest-server/issues/detail?id=23 .
Original comment by jahlborn@gmail.com
on 11 Nov 2012 at 8:42
Brilliant. My fault I assumed as I posted in json it would default to send back
json. You are quite right by adding the header 'Accept': 'application/json' it
returns a perfectly well formed response {"key":
"ag9kZXZ-dGlsbGlmeS1hcGlyCgsSBGl0ZW0YaQw"}.
Really impressed.
Thank you.
Original comment by ad...@tillify.com
on 11 Nov 2012 at 9:31
Original issue reported on code.google.com by
ad...@tillify.com
on 11 Nov 2012 at 4:25