Cakephp REST integration with iPhone app
I'm developing backend system for iPhone app providing JSON data for each request for iPhone app. This is Cakephp based backend system 开发者_StackOverflowand 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
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
精彩评论