Category Archives: REST

webmachine – wmtrace exception

webmachine – wmtrace exception – Problem discription I was getting the following exception when i thought i had wmtrace successfully set up. The server encountered an error while processing this request: [{erlang,iolist_to_binary,[error],[]}, {webmachine_decision_core,encode_body,1, [{file,"src/webmachine_decision_core.erl"}, {line,668}]}, {webmachine_decision_core,decision,1, [{file,"src/webmachine_decision_core.erl"}, {line,567}]}, {webmachine_decision_core,handle_request,2, [{file,"src/webmachine_decision_core.erl"}, {line,33}]}, {webmachine_mochiweb,loop,2,[{file,"src/webmachine_mochiweb.erl"},{line,74}]}, {mochiweb_http,parse_headers,5,[{file,"src/mochiweb_http.erl"},{line,180}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}] I had following setup complete and i was seeing the .trace […]

REST using Webmachine, Good resource

Great deck by KevSmith on using Webmachine for a clean RESTful service – Getting Rest with Webmachine Code on Github

Creating a RESTful Service in Chicago Boss

Here’s an end-to-end REST implementation in Chicago Boss. Not sure has anyone a nice concise guide out there so hope this is useful. Overview A very simple model (Book[title, author, insertTimestamp, updateTimestamp]) CRUD implementation where             Create is a POST request             Read is a […]