? ? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
8 Mar 2019

Add a basic API plugin and related classes for com_contact. This is an example of what integration with the API is going to be like for 3rd party components too

avatar wilsonge wilsonge - open - 8 Mar 2019
avatar wilsonge wilsonge - change - 8 Mar 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Mar 2019
Category SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins
avatar wilsonge wilsonge - change - 8 Mar 2019
Title
Add basic contact api
[4.0] Add basic contact api
avatar wilsonge wilsonge - edited - 8 Mar 2019
avatar wilsonge wilsonge - change - 9 Mar 2019
Labels Added: ? ?
avatar wilsonge
wilsonge - comment - 9 Mar 2019

Whoops - thanks. I initially wrote a categories implementation then changed my mind as it’s more complicated (should it be child endpoints of categories etc.). So swapped to contacts. Apparently badly :)

avatar brianteeman
brianteeman - comment - 9 Mar 2019

Confirming that the changes I requested have all been made.

However I dont have the skillset to test the actual code :(

avatar astridx
astridx - comment - 9 Mar 2019

Could it be that we have to change lines 23 and 24 in the file
libraries/src/Router/ApiRouter.php
to

use Joomla\CMS\Router\Router;
use Joomla\CMS\Router\Route;

(we have to add the CMS)

use Joomla\Router\Router;

avatar mbabker
mbabker - comment - 10 Mar 2019

@astridx see #24135 - TL;DR, it's right as is

avatar alikon
alikon - comment - 24 Mar 2019
  • curl -X GET -H 'Authorization: Basic YWRtaW46YWRtaW4=' -i 'http://localhost/quattro/api/index.php/v1/contact'

  • ok

  • curl -X GET -H 'Authorization: Basic YWRtaW46YWRtaW4=' -i 'http://localhost/quattro/api/index.php/v1/contact/1'

  • ok {"links":{"self":"http:\/\/localhost\/quattro\/api\/index.php\/v1\/contact\/1"},"data":{"type":"contacts","id":"1","attributes":{"id":1,"name":"Contact","published":1,"user_id":0,"catid":4,"language":"*"}}}

  • curl -X DELETE -H 'Authorization: Basic YWRtaW46YWRtaW4=' -i 'http://localhost/quattro/api/index.php/v1/contacts/1'

  • KO {"errors":[{"code":500,"title":"Internal server error"}]}

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2019
Category SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins Administration com_admin Front End Installation Plugins Postgresql SQL
avatar wilsonge wilsonge - change - 7 May 2019
Labels Removed: J4 Issue
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2019
Category SQL Administration com_admin Postgresql Installation Front End Plugins SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins
avatar wilsonge
wilsonge - comment - 29 Jul 2019

Closing as this has been integrated into the GSOC 19 webservices project

avatar wilsonge wilsonge - change - 29 Jul 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-07-29 12:54:05
Closed_By wilsonge
avatar wilsonge wilsonge - close - 29 Jul 2019

Add a Comment

Login with GitHub to post a comment