diff --git a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-01-05.sql b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-01-05.sql index 82f445a19e052..06622cec26cb7 100644 --- a/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-01-05.sql +++ b/administrator/components/com_admin/sql/updates/mysql/4.0.0-2019-01-05.sql @@ -1,3 +1,5 @@ INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `checked_out`, `checked_out_time`, `ordering`, `state`) VALUES -(495, 0, 'plg_api-authentication_basic', 'plugin', 'basic', 'api-authentication', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0), -(496, 0, 'plg_webservices_content', 'plugin', 'content', 'webservices', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0), +(494, 0, 'plg_api-authentication_basic', 'plugin', 'basic', 'api-authentication', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0), +(495, 0, 'plg_webservices_content', 'plugin', 'content', 'webservices', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0), +(498, 0, 'plg_webservices_users', 'plugin', 'users', 'webservices', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0), + diff --git a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-01-05.sql b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-01-05.sql index 88c457c49fb79..1c723df29e6a8 100644 --- a/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-01-05.sql +++ b/administrator/components/com_admin/sql/updates/postgresql/4.0.0-2019-01-05.sql @@ -1,3 +1,4 @@ INSERT INTO "#__extensions" ("extension_id", "package_id", "name", "type", "element", "folder", "client_id", "enabled", "access", "protected", "manifest_cache", "params", "checked_out", "checked_out_time", "ordering", "state") VALUES -(495, 0, 'plg_api-authentication_basic', 'plugin', 'basic', 'api-authentication', 0, 1, 1, 0, '', '{}', 0, '1970-01-01 00:00:00', 0, 0), -(496, 0, 'plg_webservices_content', 'plugin', 'content', 'webservices', 0, 1, 1, 0, '', '{}', 0, '1970-01-01 00:00:00', 0, 0), +(494, 0, 'plg_api-authentication_basic', 'plugin', 'basic', 'api-authentication', 0, 1, 1, 0, '', '{}', 0, '1970-01-01 00:00:00', 0, 0), +(495, 0, 'plg_webservices_content', 'plugin', 'content', 'webservices', 0, 1, 1, 0, '', '{}', 0, '1970-01-01 00:00:00', 0, 0), +(498, 0, 'plg_webservices_users', 'plugin', 'users', 'webservices', 0, 1, 1, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0), diff --git a/administrator/language/en-GB/en-GB.plg_webservices_users.ini b/administrator/language/en-GB/en-GB.plg_webservices_users.ini new file mode 100644 index 0000000000000..e8cf9203cca65 --- /dev/null +++ b/administrator/language/en-GB/en-GB.plg_webservices_users.ini @@ -0,0 +1,7 @@ +; Joomla! Project +; Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved. +; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; Note : All ini files need to be saved as UTF-8 + +PLG_WEBSERVICES_USERS="Web Services - Users" +PLG_WEBSERVICES_USERS_XML_DESCRIPTION="Used to add users routes to the API for your website." diff --git a/administrator/language/en-GB/en-GB.plg_webservices_users.sys.ini b/administrator/language/en-GB/en-GB.plg_webservices_users.sys.ini new file mode 100644 index 0000000000000..e8cf9203cca65 --- /dev/null +++ b/administrator/language/en-GB/en-GB.plg_webservices_users.sys.ini @@ -0,0 +1,7 @@ +; Joomla! Project +; Copyright (C) 2005 - 2019 Open Source Matters. All rights reserved. +; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php +; Note : All ini files need to be saved as UTF-8 + +PLG_WEBSERVICES_USERS="Web Services - Users" +PLG_WEBSERVICES_USERS_XML_DESCRIPTION="Used to add users routes to the API for your website." diff --git a/api/components/com_users/View/Users/JsonapiView.php b/api/components/com_users/View/Users/JsonapiView.php new file mode 100644 index 0000000000000..718ff92efaa11 --- /dev/null +++ b/api/components/com_users/View/Users/JsonapiView.php @@ -0,0 +1,32 @@ +createCRUDRoutes('v1/user', 'users', ['component' => 'com_users']); + } +} \ No newline at end of file diff --git a/plugins/webservices/users/users.xml b/plugins/webservices/users/users.xml new file mode 100644 index 0000000000000..5d379733bebd4 --- /dev/null +++ b/plugins/webservices/users/users.xml @@ -0,0 +1,19 @@ + + + plg_webservices_users + Joomla! Project + March 2019 + (C) 2005 - 2019 Open Source Matters. All rights reserved. + GNU General Public License version 2 or later; see LICENSE.txt + admin@joomla.org + www.joomla.org + 4.0.0 + PLG_WEBSERVICES_USERS_XML_DESCRIPTION + + users.php + + + language/en-GB/en-GB.plg_webservices_users.ini + language/en-GB/en-GB.plg_webservices_users.sys.ini + + \ No newline at end of file