Thursday, February 25, 2010

Re: REST in cakePHP

Ivan, you are better served by asking your questions to the groups, as
many other can provide insight into REST with CakePHP. I myself
haven't made any REST in my CakePHP applications, so my help is based
on what I read and understand.

So, have you made the REST setup?
Have you then made the controller, so that it can process the REST
requests?
And have you made the views, so that the REST requests can return the
result?

Opening the browser with "/controllername" should give you an XML set
of records. (GET request)
Opening the browser with "/controllerName/recordId" should give you an
XML set with the record having the recordId. (Also GET request).

To perform the other requests (DELETE, POST, PUT) you should create
another application with which to access your REST application using
the request types (GET, DELETE, POST, PUT) ... or do it from within
your REST application.

Enjoy,
John

On Feb 26, 7:50 am, ivan <lights...@gmail.com> wrote:
> What i can know your email address John Andersen?
> I have followed the steps tutorial cakephp rest but How test it so I
> know I am right step or not? What i am Access it is with : ..../
> alkitabs/123? When i am doing it, what show in my screen? xml or not?
> when i am access ../alkitabs/123 in my screen showing display not xml
> and as generally. thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: