User tests: Successful: Unsuccessful:
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
Status | New | ⇒ | Pending |
Category | ⇒ | SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins |
Title |
|
Labels |
Added:
?
?
|
Confirming that the changes I requested have all been made.
However I dont have the skillset to test the actual code :(
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
)
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"}]}
Category | SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins | ⇒ | Administration com_admin Front End Installation Plugins Postgresql SQL |
Labels |
Removed:
J4 Issue
|
Category | SQL Administration com_admin Postgresql Installation Front End Plugins | ⇒ | SQL Administration com_admin Postgresql Language & Strings Installation Front End Plugins |
Closing as this has been integrated into the GSOC 19 webservices project
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-07-29 12:54:05 |
Closed_By | ⇒ | wilsonge |
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 :)