ASRA ~ A Simple RESTful API
Monday, August 25th, 2008
beta version 1.3
The ASRA package is a quick and dirty MVC-ish (not really) package that enables you to quickly write SQL queries (and sometimes quick methods that allow you to bypass SQL altogether) and export the results in xml, json, a serialized array, var=value pairs or yaml (yaml is experimental at this point) based on simple string in a “pretty” URL.
I typically use ASRA to create quick APIs for serving content from a database to different apps such as Flash and Flex. For more information, check out the ASRA page (documentation coming soon) featuring a short intro, tutorial and instructions on how to get it if you’d like to take it apart and/or use it or download the in-progress documentation (which contains the beginning of the reference and api reference that will eventually make its way to the ASRA page).
svn checkout http://svn.typeoneerrordev.com/asra/trunkSome of it’s features include…
- results in xml, json, serialized, var=value pairs, yaml
- results caching
- easy subquerying for selecting simple associations into a result set
- database configuration similar to Zend_Config_Ini for easy Zend Framework integration
- Textmate bundle for ASRA snippets
- Debugging and query logging
- More and more to come…
Leave a Reply