Comments (6)
There is no builtin way to do this. The default output type is controlled by
the order of the list on line
http://code.google.com/p/appengine-rest-server/source/browse/trunk/src/main/pyth
on/rest/__init__.py#1627 . the last value in the last is the default if no
output format is specified by the caller.
Original comment by [email protected]
on 29 Nov 2010 at 1:39
- Changed title: allow to use application/json as default input and output
- Added labels: Type-Enhancement
- Removed labels: Type-Defect
from appengine-rest-server.
This issue was closed by revision r57.
Original comment by [email protected]
on 25 Mar 2011 at 6:40
- Changed state: Fixed
from appengine-rest-server.
Original comment by [email protected]
on 6 Jun 2012 at 1:10
- Added labels: Milestone-Release-1.0.5
from appengine-rest-server.
I tried this. I switched the order around, but it didn't seem to work> What did
work ws to remove the XML content type entirely, I did note that their are two
versions that are in opposite. Web-app and Web-app2.
Original comment by [email protected]
on 11 Nov 2012 at 9:26
from appengine-rest-server.
I would like to remove xml entirely as well, could you point to the parts of
the code you took, out, i can't really understand what is going on inside.
Thanks
Original comment by [email protected]
on 1 Jun 2013 at 10:25
from appengine-rest-server.
Just add this to your setup script:
rest.Dispatcher.output_content_types = [JSON_CONTENT_TYPE]
Original comment by [email protected]
on 2 Jun 2013 at 12:57
from appengine-rest-server.
Related Issues (20)
- Implement Python Unit Tests HOT 1
- Package new version HOT 3
- No JSON object could be decoded HOT 4
- Setting caching = True causes AttributeError: 'Response' object has no attribute 'getvalue' HOT 4
- The server runs ik but the authorizer class you provided doest seem to work.I can still access my model without login. HOT 7
- Detailed Documentation HOT 10
- Problem with POST method HOT 7
- use <list> for metadata HOT 1
- ETag / If-None-Match support HOT 4
- JSON usage HOT 2
- Nested results using reference property HOT 5
- Initial Setup & Install HOT 2
- Allow using key name (or integer ID) when referencing entities HOT 3
- JSON Query responses that return one data object are not correctly serialised HOT 2
- GET Broken: Syntax error introduced in r121 HOT 1
- TypeError: unbound method set_response_content_type HOT 1
- Remove "Item" nodes in json HOT 12
- Paging and memcache HOT 1
- Need to return a count of the results in total. HOT 2
- Uploading images to BlobInfo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appengine-rest-server.