Skip to content

Commit

Permalink
Modification of testclient index for create_group and add_groupmember…
Browse files Browse the repository at this point in the history
… funtions
  • Loading branch information
pigui committed Jan 30, 2009
1 parent 37acca4 commit 7a3f6bd
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions webservice/rest/testclient/php_curl_rest_client.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,35 @@
<?php
/**
* Created on 10/17/2008
*
*
* Rest Test Client
*
* @author David Castro Garcia
* @author Ferran Recio Calderó
* @author Jerome Mouneyrac
* @author Jordi Piguillem
*/

require_once ('config_rest.php');

start_interface (false);

$links = array( array('getusers.php','get_users()'),
$links = array( array('USERS'),
array('getusers.php','get_users()'),
array('createuser.php','create_user()'),
array('deleteuser.php','delete_user()'),
array('updateuser.php','update_user()'));
array('updateuser.php','update_user()'),
array('GROUPS'),
array('creategroup.php','create_group()'),
array('addgroupmember.php', 'add_groupmember()'));

echo '<ul>';
foreach ($links as $link) {
echo '<li><a href="'.$link[0].'">'.$link[1].'</a></li>';
if (sizeof($link)==2){
echo '<li><a href="'.$link[0].'">'.$link[1].'</a></li>';
} else {
echo '</ul><h2>'.$link[0].'</h2><ul>';
}
}
echo '</ul>';

Expand Down

0 comments on commit 7a3f6bd

Please sign in to comment.