开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜