Re: How to do a REST WS?

2012-06-22 Thread Борислав Събев
Hi, Lucas. Firstly if you're developing a REST service it's best to use Cake 2.x and higher - you can just use the latest stable version. The new Cake version has a lot of improvements which will come in handy when you're doing a REST service.Then how would you go about building your REST

Re: How to do a REST WS?

2012-06-22 Thread the_woodsman
Sorry to be pedantic, but unless I don't understand these routes, it's worth mentioning that this example isn't strictly REST: *Router::connect('/:candidates/addrecord', array('controller'= 'candidates', 'action' = 'addRecord', '[method]' = 'POST'));

Re: How to do a REST WS?

2012-06-22 Thread Lucas Simon Rodrigues Magalhaes
thanks guys to help. Here I am with another problem. I can not serve the content through a file, for example, when I call the url: http://.../ws_billings/generate_extract_consolidated/1/01-06-2012/21-06-2012/ First parameter, validating a Token. Not implemented yet. Second parameter and third

Re: How to do a REST WS?

2012-06-22 Thread Борислав Събев
Yes! I am aware. :) I didn't want to use the strict REST model in this application - yes some of this is actually copy/paste from an WebService I did. As you can see all requests are POST - I wanted to avoid PUT and DELETE requests and implement strong authentication. Anyhow you're right, I

How to do a REST WS?

2012-06-21 Thread Lucas Simon Rodrigues Magalhaes
Hello I need to build an application in Webservice to return data for a particular billing. I thought about using REST to provide data json / xml instead of nusoap, but I'm sure how to do it. First I'm using cakePHP version 1.3, and following the cake book [1]. According to according to the