Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return objects in all json responses #86

Open
mconf-daileon opened this issue May 4, 2016 · 0 comments
Open

Return objects in all json responses #86

mconf-daileon opened this issue May 4, 2016 · 0 comments

Comments

@mconf-daileon
Copy link


Author Name: Leonardo Daronco (Leonardo Daronco)
Original Redmine Issue: 633, http://dev.mconf.org/redmine/issues/633
Original Date: 2013-03-12


Review all json responses to standardize the returned objects.

Currently, most of them return a json object with a message only. We could replace it by the object that was created/updated or by an empty object in actions that destroy the objects.
Returning the object is useful when updating it via json, like is done when jEditable is used. In an update, for example, it expects the object to be returned so that it can confirm that the new value of the attribute it tried to set was actually set.

@mconf-daileon mconf-daileon added this to the v2.1.0 milestone May 4, 2016
@mconf-daileon mconf-daileon modified the milestones: v2.2.0, v2.1.0 May 5, 2016
@daronco daronco modified the milestones: v2.2.0, v3.0.0 Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants