4 ms·
> Rails has better support for APIs What does this mean?
by mccutchen 17y ago
> Rails has better support for APIs
What does this mean?
- qhoxie 17y agoProbably talking about ready-built libraries. Poorly worded though.
- benatkin 17y agoTo be specific, Rails has better support for providing XML and JSON APIs. One place where it has better support is serialization. In rails, there is an :include parameter to control whether to include objects from associations (e. g. comments in a post), that is available both on to_xml or to_json. I don't see an option for Django that does the same thing. http://api.rubyonrails.org/classes/ActiveRecord/Serialization.html http://api.rubyonrails.org/classes/ActiveRecord/Serializatio... http://docs.djangoproject.com/en/dev/topics/serialization/ http://docs.djangoproject.com/en/dev/topics/serialization/