An open API service indexing awesome lists of open source software.

https://github.com/atomicobject/to_api

Instead of to_xml and as_json, simply implement to_api. Return an unformatted hash. Let the model understand the data. Let the controller understand the format. In Rails, the controller can simply call render :xml => model.to_api or render :json => model.to_api.
https://github.com/atomicobject/to_api

Last synced: 10 months ago
JSON representation

Instead of to_xml and as_json, simply implement to_api. Return an unformatted hash. Let the model understand the data. Let the controller understand the format. In Rails, the controller can simply call render :xml => model.to_api or render :json => model.to_api.

Awesome Lists containing this project