I haven't seen anything like this yet, which surprised me. Here is a simple DataWriter for those who want to have their parameters in HTTP POST fashion, instead of a glob of JSON or XML. It works for me, use at your own risk.

however this was less of an issue then the api, and that it uses a URI. I eventually worked around the URI issue by using the HTTP_SERVER_VARS['PATH_INFO'] variable in php. The data blob can just be decoded on the server side.

Katz

moegal

15 Mar 2010, 4:26 AM

Katz,

I was hoping to try this today, what is URI? Do you mean url?

BLOB? The data writer just post data to the server via post or get, right?

Marty

TopKatz

15 Mar 2010, 5:30 AM

URI is part of the URL. In the api with this it basically goes like :

your/path/file.php/someAction

So because Im not using a MVC I needed to read the someAction part to do my work. Using the PATH_INFO I'm able to use the "someAction" part and switch on that to handle the different acctions.

It does use POST or GET, it just uses a data object (blob) with sub objects in it. This UX breaks out the "data" blob into traditional post items.

Again, for me dealing with the data object was not a issue. Handling the api part was what took me some time to figure out how to deal with.

There is a good writer example in the grid section that I found helpful