Simple Rest Example

Submitted On: 20 Oct 2022
File Size: 2
Downloads: 22
File Version: 1.0.0
File Author: Martin Brampton

A very simple illustration of how to use the Black Sheep Research Restful Plugin for Joomla

File Rating (0/0)
Log in to cast your vote
Comments: 1
avatar email@renekreijveld.nl
email@renekreijveld.nl 2 years ago
Hi, I'm trying to get this example to work. I have installed on a Joomla 4 website the system-restful plugin and the restdemo plugin. Both are published. When I do a GET test to www.mysite.com/myrestful/test I get a 404. What am I doing wrong?

RELATED DOCUMENTS

This report falls under the following categories. Click on a link below to explore similar documents.

ProductLines: Tools

Is there anything we can help you with in this morning ?

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

4.096MBMemory Usage115msRequest Duration
Joomla! Version5.2.5
PHP Version8.2.28
Identityguest
Response200
Templatecassiopeia
Database
Server
mysql
Version
10.11.6-MariaDB-0+deb12u1-log
Collation
utf8mb4_unicode_ci
Conn Collation
utf8mb4_general_ci
$_GET
array:2 [ "view" => "fileinfo" "id" => 685 ]
$_POST
[]
$_SESSION
array:2 [ "aliro_auth" => array:5 [ "subj_found" => & array:1 [ "remosFolder" => array:2...
$_COOKIE
array:1 [ "d5da79bc0b36f7f37f1d1beb5d2efb16" => "ejad2l9jeu42nbpskds09pkerd" ]
$_SERVER
array:55 [ "USER" => "remos" "HOME" => "/var/www/remos" "SCRIPT_NAME" => "" "REQUEST_URI" =>...
session
array:3 [ "counter" => 2 "timer" => array:3 [ "start" => 1742016887 "last" => 1742016887...
registry
array:3 [ "data" => [] "initialized" => false "separator" => "." ]
user
array:21 [ "id" => 0 "name" => null "username" => null "email" => null "password" => "***r...
gtag
false
  • afterLoad (73.79KB) (1.69ms)
  • afterInitialise (1.04MB) (27.79ms)
  • afterRoute (347.54KB) (12.68ms)
  • beforeRenderComponent com_remository (46.16KB) (2.99ms)
  • afterRenderComponent com_remository (1.57MB) (39.32ms)
  • afterDispatch (2.27KB) (314μs)
  • beforeRenderRawModule mod_menu (Main Menu) (64.38KB) (2.72ms)
  • afterRenderRawModule mod_menu (Main Menu) (124.33KB) (3.15ms)
  • beforeRenderRawModule mod_login (Login Form) (976B) (46μs)
  • afterRenderRawModule mod_login (Login Form) (38.06KB) (1.24ms)
  • beforeRenderRawModule mod_remositorytree (Explore Repository) (704B) (35μs)
  • afterRenderRawModule mod_remositorytree (Explore Repository) (10.38KB) (3.97ms)
  • beforeRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (4.79KB) (410μs)
  • afterRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (42.06KB) (1.1ms)
  • beforeRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (736B) (13μs)
  • Before Access::preloadComponents (all components) (12.5KB) (1.46ms)
  • After Access::preloadComponents (all components) (114.68KB) (4.28ms)
  • Before Access::getAssetRules (id:1 name:root.1) (536B) (66μs)
  • After Access::getAssetRules (id:1 name:root.1) (7.05KB) (119μs)
  • afterRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (520B) (276μs)
  • beforeRenderModule mod_menu (Main Menu) (12.26KB) (253μs)
  • afterRenderModule mod_menu (Main Menu) (4.19KB) (310μs)
  • beforeRenderModule mod_login (Login Form) (640B) (28μs)
  • afterRenderModule mod_login (Login Form) (6.47KB) (120μs)
  • beforeRenderModule mod_remositorytree (Explore Repository) (5.86KB) (21μs)
  • afterRenderModule mod_remositorytree (Explore Repository) (4.48KB) (123μs)
  • beforeRenderRawModule mod_breadcrumbs (Breadcrumbs) (7.02KB) (154μs)
  • afterRenderRawModule mod_breadcrumbs (Breadcrumbs) (10.52KB) (1.56ms)
  • beforeRenderModule mod_breadcrumbs (Breadcrumbs) (704B) (16μs)
  • afterRenderModule mod_breadcrumbs (Breadcrumbs) (3.56KB) (227μs)
  • afterRender (134.55KB) (7.44ms)
  • 1 x afterRenderComponent com_remository (1.57MB) (34.24%)
    39.32ms
    1 x afterInitialise (1.04MB) (24.2%)
    27.79ms
    1 x afterRoute (347.54KB) (11.05%)
    12.68ms
    1 x afterRender (134.55KB) (6.48%)
    7.44ms
    1 x After Access::preloadComponents (all components) (114.68KB) (3.73%)
    4.28ms
    1 x afterRenderRawModule mod_remositorytree (Explore Repository) (10.38KB) (3.46%)
    3.97ms
    1 x afterRenderRawModule mod_menu (Main Menu) (124.33KB) (2.74%)
    3.15ms
    1 x beforeRenderComponent com_remository (46.16KB) (2.61%)
    2.99ms
    1 x beforeRenderRawModule mod_menu (Main Menu) (64.38KB) (2.37%)
    2.72ms
    1 x afterLoad (73.79KB) (1.47%)
    1.69ms
    1 x afterRenderRawModule mod_breadcrumbs (Breadcrumbs) (10.52KB) (1.36%)
    1.56ms
    1 x Before Access::preloadComponents (all components) (12.5KB) (1.27%)
    1.46ms
    1 x afterRenderRawModule mod_login (Login Form) (38.06KB) (1.08%)
    1.24ms
    1 x afterRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (42.06KB) (0.95%)
    1.10ms
    1 x beforeRenderRawModule mod_whatsapp_agent (WhatsApp Multi Agent) (4.79KB) (0.36%)
    410μs
    1 x afterDispatch (2.27KB) (0.27%)
    314μs
    1 x afterRenderModule mod_menu (Main Menu) (4.19KB) (0.27%)
    310μs
    1 x afterRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (520B) (0.24%)
    276μs
    1 x beforeRenderModule mod_menu (Main Menu) (12.26KB) (0.22%)
    253μs
    1 x afterRenderModule mod_breadcrumbs (Breadcrumbs) (3.56KB) (0.2%)
    227μs
    1 x beforeRenderRawModule mod_breadcrumbs (Breadcrumbs) (7.02KB) (0.13%)
    154μs
    1 x afterRenderModule mod_remositorytree (Explore Repository) (4.48KB) (0.11%)
    123μs
    1 x afterRenderModule mod_login (Login Form) (6.47KB) (0.1%)
    120μs
    1 x After Access::getAssetRules (id:1 name:root.1) (7.05KB) (0.1%)
    119μs
    1 x Before Access::getAssetRules (id:1 name:root.1) (536B) (0.06%)
    66μs
    1 x beforeRenderRawModule mod_login (Login Form) (976B) (0.04%)
    46μs
    1 x beforeRenderRawModule mod_remositorytree (Explore Repository) (704B) (0.03%)
    35μs
    1 x beforeRenderModule mod_login (Login Form) (640B) (0.02%)
    28μs
    1 x beforeRenderModule mod_remositorytree (Explore Repository) (5.86KB) (0.02%)
    21μs
    1 x beforeRenderModule mod_breadcrumbs (Breadcrumbs) (704B) (0.01%)
    16μs
    1 x beforeRenderModule mod_whatsapp_agent (WhatsApp Multi Agent) (736B) (0.01%)
    13μs
37 statements were executed, 4 of which were duplicates, 33 unique68.42ms96.39KB
  • SELECT @@SESSION.sql_mode;278μs968B/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:308Copy
  • SELECT `data` FROM `jos_session` WHERE `session_id` = ?1.05ms1KBParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:250Copy
  • SELECT `session_id` FROM `jos_session` WHERE `session_id` = :session_id LIMIT 1405μs1.31KBParams/libraries/src/Session/MetadataManager.php:187Copy
  • UPDATE `jos_session` SET `guest` = :guest , `time` = :time , `userid` = :user_id , `username` = :username , `client_id` = :client_id WHERE `session_id` = :session_id1.83ms992BParams/libraries/src/Session/MetadataManager.php:316Copy
  • SELECT `extension_id` AS `id`,`element` AS `option`,`params`,`enabled` FROM `jos_extensions` WHERE `type` = 'component' AND `state` = 0 AND `enabled` = 1935μs17.69KB/libraries/src/Component/ComponentHelper.php:399Copy
  • SELECT `id`,`rules` FROM `jos_viewlevels`345μs656B/libraries/src/Access/Access.php:955Copy
  • SELECT `b`.`id` FROM `jos_usergroups` AS `a` LEFT JOIN `jos_usergroups` AS `b` ON `b`.`lft` <= `a`.`lft` AND `b`.`rgt` >= `a`.`rgt` WHERE `a`.`id` = :guest414μs1.33KBParams/libraries/src/Access/Access.php:868Copy
  • SELECT `folder` AS `type`,`element` AS `name`,`params` AS `params`,`extension_id` AS `id` FROM `jos_extensions` WHERE `enabled` = 1 AND `type` = 'plugin' AND `state` IN (0,1) AND `access` IN (:preparedArray1,:preparedArray2) ORDER BY `ordering`1.65ms4.48KBParams/libraries/src/Plugin/PluginHelper.php:294Copy
  • SET sql_mode=(SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES',''));107μs640B/administrator/components/com_osmembership/loader.php:95Copy
  • SELECT `m`.`id`,`m`.`menutype`,`m`.`title`,`m`.`alias`,`m`.`note`,`m`.`link`,`m`.`type`,`m`.`level`,`m`.`language`,`m`.`browserNav`,`m`.`access`,`m`.`params`,`m`.`home`,`m`.`img`,`m`.`template_style_id`,`m`.`component_id`,`m`.`parent_id`,`m`.`path` AS `route`,`e`.`element` AS `component` FROM `jos_menu` AS `m` LEFT JOIN `jos_extensions` AS `e` ON `m`.`component_id` = `e`.`extension_id` WHERE ( (`m`.`published` = 1 AND `m`.`parent_id` > 0 AND `m`.`client_id` = 0) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= :currentDate1)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= :currentDate2) ORDER BY `m`.`lft`1.14ms19.8KBParams/libraries/src/Menu/SiteMenu.php:166Copy
  • SHOW TABLES LIKE 'jos_downloads_repository'836μs520B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:143Copy
  • SELECT `path`, `link` FROM `jos_menu` WHERE `link` LIKE '%remository%' AND `published` > 0 AND `client_id` = 0474μs608BsameCopy
  • SELECT f.id, f.containerid, f.filetitle, f.realname FROM jos_downloads_files AS f WHERE f.containerid = 118360μs752BsameCopy
  • SELECT `config_key`,`config_value` FROM jos_osmembership_configs392μs3.06KB/administrator/components/com_osmembership/libraries/mpf/config/config.php:42Copy
  • SELECT * FROM `jos_languages` WHERE `published` = 1 ORDER BY `ordering` ASC372μs1.59KB/libraries/src/Language/LanguageHelper.php:177Copy
  • SELECT `id`,`home`,`template`,`s`.`params`,`inheritable`,`parent` FROM `jos_template_styles` AS `s` LEFT JOIN `jos_extensions` AS `e` ON `e`.`element` = `s`.`template` AND `e`.`type` = 'template' AND `e`.`client_id` = `s`.`client_id` WHERE `s`.`client_id` = 0 AND `e`.`enabled` = 1431μs832B/administrator/components/com_templates/src/Model/StyleModel.php:775Copy
  • SELECT role, subject_id, action FROM jos_permissions WHERE subject_type = 'remosFolder' AND action IN('download','edit')485μs2.38KBsameCopy
  • SELECT NOW()139μs536B/components/com_userpoints/src/Problems/SQL.php:31Copy
  • SELECT UNIX_TIMESTAMP(NOW())81μs536B/components/com_userpoints/src/Problems/SQL.php:74Copy
  • SELECT COUNT(`id`) FROM `jos_usergroups`246μs536B/libraries/src/Helper/UserGroupsHelper.php:207Copy
  • SELECT * FROM `jos_usergroups` ORDER BY `lft` ASC240μs976B/libraries/src/Helper/UserGroupsHelper.php:266Copy
  • SELECT NOW()157μs536BsameCopy
  • SELECT f.*, AVG(l.value) AS vote_value, COUNT(l.value) AS vote_count, CASE WHEN fv.user_id IS NULL THEN 0 WHEN fv.user_id = 0 THEN 0 ELSE 1 END AS favourite FROM jos_downloads_files AS f LEFT JOIN jos_downloads_log AS l ON l.type=3 AND l.fileid=f.id LEFT JOIN jos_downloads_favour AS fv ON fv.file_id = f.id AND fv.user_id = 0 WHERE f.id = 685 AND published=1 GROUP BY f.id1.25ms9.72KBsameCopy
  • SELECT c.*, CASE WHEN c.type = 'ProductLines' THEN 0 WHEN c.type = 'Services' THEN 1 ELSE 9 END AS typseq FROM jos_downloads_classify AS c INNER JOIN jos_downloads_file_classify AS fc ON c.id = fc.classify_id WHERE c.published != 0 AND c.hidden = 0 AND fc.file_id = 685 ORDER BY typseq, c.name1.16ms1.44KB/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:173Copy
  • SELECT COUNT(*) FROM jos_downloads_log WHERE type=3 AND ipaddress='18.221.52.104' AND fileid=685433μs536B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:143Copy
  • SELECT COUNT(*) FROM jos_downloads_log WHERE type=3 AND ipaddress='18.221.52.104' AND fileid=685260μs0BsameCopy
  • SELECT c.id, c.title, c.comment, c.date, c.imgcount, u.id as userid, u.name, u.username FROM jos_downloads_reviews AS c INNER JOIN jos_users AS u ON c.userid=u.id WHERE c.itemid=685 ORDER BY c.date DESC443μs928B/libraries/BlackSheepResearch/aliro/database/ExtendedDatabase.php:173Copy
  • SHOW FULL COLUMNS FROM `jos_users`748μs1.58KB/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php:587Copy
  • SELECT * FROM `jos_users` WHERE `id` = :userid299μs3.16KBParams/libraries/src/Table/User.php:106Copy
  • SELECT `g`.`id`,`g`.`title` FROM `jos_usergroups` AS `g` INNER JOIN `jos_user_usergroup_map` AS `m` ON `m`.`group_id` = `g`.`id` WHERE `m`.`user_id` = :muserid325μs1.37KBParams/libraries/src/Table/User.php:134Copy
  • SELECT avatar FROM jos_osmembership_subscribers WHERE user_id = 196 AND avatar != ''214μs520BsameCopy
  • SELECT email FROM jos_users WHERE id = 196105μs536BsameCopy
  • SELECT `m`.`id`,`m`.`title`,`m`.`module`,`m`.`position`,`m`.`content`,`m`.`showtitle`,`m`.`params`,`mm`.`menuid` FROM `jos_modules` AS `m` LEFT JOIN `jos_modules_menu` AS `mm` ON `mm`.`moduleid` = `m`.`id` LEFT JOIN `jos_extensions` AS `e` ON `e`.`element` = `m`.`module` AND `e`.`client_id` = `m`.`client_id` WHERE ( ( (`m`.`published` = 1 AND `e`.`enabled` = 1 AND `m`.`client_id` = :clientId AND `m`.`access` IN (:preparedArray1,:preparedArray2)) AND (`m`.`publish_up` IS NULL OR `m`.`publish_up` <= :publishUp)) AND (`m`.`publish_down` IS NULL OR `m`.`publish_down` >= :publishDown)) AND (`mm`.`menuid` = :itemId OR `mm`.`menuid` <= 0) ORDER BY `m`.`position`,`m`.`ordering`947μs4.39KBParams/libraries/src/Cache/Controller/CallbackController.php:51Copy
  • SELECT `id`,`name`,`rules`,`parent_id` FROM `jos_assets` WHERE `name` IN (:preparedArray1,:preparedArray2,:preparedArray3,:preparedArray4,:preparedArray5,:preparedArray6,:preparedArray7,:preparedArray8,:preparedArray9,:preparedArray10,:preparedArray11,:preparedArray12,:preparedArray13,:preparedArray14,:preparedArray15,:preparedArray16,:preparedArray17,:preparedArray18,:preparedArray19,:preparedArray20,:preparedArray21,:preparedArray22,:preparedArray23,:preparedArray24,:preparedArray25,:preparedArray26,:preparedArray27,:preparedArray28,:preparedArray29,:preparedArray30,:preparedArray31,:preparedArray32,:preparedArray33,:preparedArray34,:preparedArray35,:preparedArray36,:preparedArray37,:preparedArray38,:preparedArray39,:preparedArray40,:preparedArray41,:preparedArray42,:preparedArray43,:preparedArray44)1.35ms7.81KBParams/libraries/src/Access/Access.php:357Copy
  • SELECT SUM(CASE WHEN `a`.`next_execution` <= :now THEN 1 ELSE 0 END) AS due_count,SUM(CASE WHEN `a`.`locked` IS NULL THEN 0 ELSE 1 END) AS locked_count FROM `jos_scheduler_tasks` AS `a` WHERE `a`.`state` = 1649μs1.37KBParams/administrator/components/com_scheduler/src/Model/TasksModel.php:517Copy
  • SELECT `session_id` FROM `jos_session` WHERE `session_id` = ?372μs1KBParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:277Copy
  • UPDATE `jos_session` SET `data` = ? , `time` = ? WHERE `session_id` = ?47.51ms592BParams/libraries/vendor/joomla/session/src/Handler/DatabaseHandler.php:301Copy