KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to use Flask-Restless with Ember.js which isn't going so great. It's the GET responses that are tripping me up. For instance, when I do a GET request on /api/people for example Ember.js expects: { people: [ { id: 1, name: "Yehuda Katz" } ] } But Flask-Restless responds with: { "total_pages": 1, "objects": [ { "id": 1, "name": "Yahuda Katz" } ], "num_results": 1, "page": 1 } How do I change Flask-Restless's response to conform to what Ember.js would like? I have this feeling it might be in a postprocessor function, but I'm not sure how to implement it.
Tags (comma-separated)
Save Edits
Cancel