1
votes

I'm developing backend system for iPhone app providing JSON data for each request for iPhone app. This is Cakephp based backend system and I was wondering if there was a good Cake way to receive POST request?

I understand using Router::mapResources(), Router::parseExtensions(), requestHandler component, Xml and Javascript helper is the correct way of creating RESTful application? If so, I was wondering how we could set them up to accept POST requests and potentially XML and/or JSON aswell.

Thank you

1

1 Answers

0
votes

I was wondering if there was a good Cake way to receive POST request?

send a POST request to the correct url, and you can process it as normal. The POST data is in $this->data in the controller.

If so, I was wondering how we could set them up to accept POST requests and potentially XML and/or JSON aswell.

XML and JSON are not in the same category as POST. Read about REST setup here