Redirection upon GET for an API endpoint

Phoca Cart - complex e-commerce extension
User avatar
fakemoth
Phoca Member
Phoca Member
Posts: 36
Joined: 23 Jun 2009, 11:06
Location: Transilvania
Contact:

Redirection upon GET for an API endpoint

Post by fakemoth »

Hi, guys how can one create an API endpoint that upon GET request will be redirected to a custom controller? Point is to retrieve certain data from a Phoca Cart orders table. Any example, tutorial, docs, or pure knowledge for Joomla 5 would be much appreciated.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48932
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Redirection upon GET for an API endpoint

Post by Jan »

Hi, I think, this is much more a question on Joomla.org forum as possible API can be managed through Joomla plugins (e.g. Phoca Cart Webservices plugin uses Joomla webservices plugin features: https://www.phoca.cz/phocacart-extensio ... ces-plugin or Phoca Cart Console plugin uses console plugin features: https://www.phoca.cz/phocacart-extensio ... ole-plugin )

Jan
If you find Phoca extensions useful, please support the project
User avatar
fakemoth
Phoca Member
Phoca Member
Posts: 36
Joined: 23 Jun 2009, 11:06
Location: Transilvania
Contact:

Re: Redirection upon GET for an API endpoint

Post by fakemoth »

I suspected that much, thank you for your answer Jan!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48932
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Redirection upon GET for an API endpoint

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply