Forum OpenACS Q&A: Re: providing RESTful apis
3: Re: providing RESTful apis (response to 1)
Posted by Dave Bauer on 02/15/12 03:42 PM
Seems like it is a good idea.
Don added json-procs.tcl to acs-tcl package last August, very handy.
Basically you need an API to register procs that can return a datasource you can convert to/from JSON.
In general, I find you still need to end up writing specific procedures since very few applications use simple objects, although maybe with acs-object-management you could manage different views and provide those with JSON.
4: Re: providing RESTful apis (response to 3)
Posted by Dave Bauer on 02/24/12 03:32 AM
If you look at acs-object-management it gives you the tools to build up views/forms based on object types that would be useful to develop the data structures used in an restful API.