hi all,
I am also looking on providing an API for my application. It seems,
CakePHP does has some support for REST, SOAP. Just doing simple search
on cake library, I found that this code in router.php file
if (Configure::read('Routing.webservices') == 'on') {
trigger_error('Deprecated: webservices routes are
deprecated and
will not be supported in future versions. Use
Router::parseExtensions() instead.', E_USER_WARNING);
$_this->connect('/rest/:controller/:action/*',
array('webservices'
=> 'Rest'));
$_this->connect('/rss/:controller/:action/*',
array('webservices'
=> 'Rss'));
$_this->connect('/soap/:controller/:action/*',
array('webservices'
=> 'Soap'));
$_this->connect('/xml/:controller/:action/*',
array('webservices'
=> 'Xml'));
$_this->connect('/xmlrpc/:controller/:action/*',
array('webservices' => 'XmlRpc'));
}
$_this->connect('/:controller/:action/*');
Although, I am not sure how to use it. If you can point me to any
tutorial, help ...that will be great.
Regards
On Mar 5, 8:46 pm, leveille <[EMAIL PROTECTED]> wrote:
> Sonic these are excellent questions you've asked, and questions I have
> asked myself when thinking about this very topic. I would love to see
> feedback from someone who has experience constructing APIs, and who
> has asked and worked with these very questions.
>
> On Mar 5, 3:08 pm, "Sonic Baker" <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Tue, Mar 4, 2008 at 2:16 AM, mbavio <[EMAIL PROTECTED]> wrote:
>
> > > > this is a good place to
> > > starthttp://particletree.com/features/how-to-add-an-api-to-your-web-service/
>
> > > > look at the additional reading section at the end
>
> > > > Sam D
>
> > I was actually thinking and discussing this topic myself lately. Then I was
> > wondering, if I create an API, should I change my application to actually
> > use the API itself, i.e. should I have a kind of core with an API layer on
> > top and then code the rest of my app to work through the API. Would this be
> > overkill or would it have it's benefits?
>
> > Thoughts?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---