Check out the manual for Custom REST Routing. You'll want to use
custom instead of Simple as simple sets up routes for edit and delete
which you stat you do not want. So you will need to set a custom route
for each one that you do want to support.
http://book.cakephp.org/view/478/Custom-REST-Routing

Also with your routes set as long as you have your views defined in
the view/xml folder you should get xml, if the view file doesn't exist
in the xml folder I believe the default action is to return the normal
view.
You'll also want to place the RequestHandler as an included component
of your controller which will help in automatically identifying
request type and setting the proper return layout and view type.

var $components = array('RequestHandler');

On Feb 16, 8:49 pm, SonnyBurnette <[email protected]> wrote:
> I just setup a simple example to test REST. I have been able to
> create, edit, delete, etc. How do I ignore REST calls to delete and
> edit but still allow it from the normal web interface?
>
> example: The web interface can go towww.domain.com/users/edit/5but I
> don't want to allow any REST calls there.
>
> Also, I am seeing that I am sending in XML but I am not getting XML
> back when I create records. Shouldn't cakephp know to spit back an XML
> response versus the normal html flash message?

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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to