[jifty-devel] posting application/json to REST API
Nelson Elhage
nelhage at bestpractical.com
Thu Aug 9 00:20:16 EDT 2007
In the current implementation, I believe all REST formats still take
parameters as HTTP POST|GET argument -- the format only determines the
return format. I bet it'd be nice if we accepted both, especially if the
client sets the content-type correctly as you're doing.
- Nelson
On Tue, Aug 07, 2007 at 03:25:00PM -0500, Matthew Lenz wrote:
> I'm trying to do the following:
>
> json.txt:
>
> { 'contains':'smith' }
>
> command line:
>
> cat json.txt | POST -f -c 'application/json' \
> http://localhost:8888/=/action/MyApp::Action::SearchAuthor.json
>
> ..
>
> This results in every Author being returned rather than just those that
> contain 'smith' in one of their fields. I'm guessing that it just isn't
> receiving the arguments.
>
> Is this not the correct way to query with json formatted data?
>
> -Matt
>
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
More information about the jifty-devel
mailing list