Welcome!
Here is a web GUI to interactively select and input all parameters.
In a production environment you should disable it in the JSON config below options -> enableGui = 0.
Explore
configured, accessible classes are:
swsdemo
this is a simple demo class for demonstration of "simple web service" It shows date and time in different ways @version 0.1 @author Axel Hahn @link http://www.axel-hahn.de/php_sws @license GPL @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 @package Axels simple web service
PHPDOCallowed methods:
getDate
init parameters of class "swsdemo"
$o = new swsdemo ( ... )
construct @return boolean
PHPDOC(no parameters)parameters of method "getDate"
$o ->getDate ( ... )
show current date @param string $sFormat date format ... and a 2nd param line ... and a 3rd @return string
PHPDOCORselect output type
preview:
getDateAsArray
init parameters of class "swsdemo"
$o = new swsdemo ( ... )
construct @return boolean
PHPDOC(no parameters)parameters of method "getDateAsArray"
$o ->getDateAsArray ( ... )
show current date and time as a flat array @return array
PHPDOC(no parameters)select output type
preview:
getDateAsAssocArray
init parameters of class "swsdemo"
$o = new swsdemo ( ... )
construct @return boolean
PHPDOC(no parameters)parameters of method "getDateAsAssocArray"
$o ->getDateAsAssocArray ( ... )
show current date and time as an assoc array @return array
PHPDOC(no parameters)select output type
preview:
getYear
init parameters of class "swsdemo"
$o = new swsdemo ( ... )
construct @return boolean
PHPDOC(no parameters)parameters of method "getYear"
$o ->getYear ( ... )
show current year as YYYY @return integer
PHPDOC(no parameters)select output type
preview:
- nonExistingMethodForTesting <<< ERROR in configuration: this method does not exist
swsdemo2
this is a simple demo class for demonstration of "simple web service" It shows a few variable from $_SERVER @version 0.1 @author Axel Hahn @link http://www.axel-hahn.de/php_sws @license GPL @license http://www.gnu.org/licenses/gpl-3.0.html GPL 3.0 @package Axels simple web service
PHPDOCallowed methods:
getServerAttributes
init parameters of class "swsdemo2"
$o = new swsdemo2 ( ... )
construct @return boolean
PHPDOC(no parameters)parameters of method "getServerAttributes"
$o ->getServerAttributes ( ... )
get all available keys of $_SERVER @return type
PHPDOC(no parameters)select output type
preview:
showRemoteAddr
init parameters of class "swsdemo2"
$o = new swsdemo2 ( ... )
construct @return boolean
PHPDOC(no parameters)parameters of method "showRemoteAddr"
$o ->showRemoteAddr ( ... )
show the remote host $_SERVER["REMOTE_ADDR"] (= users ip) @return string
PHPDOC(no parameters)select output type
preview:
testArray
init parameters of class "swsdemo2"
$o = new swsdemo2 ( ... )
construct @return boolean
PHPDOC(no parameters)parameters of method "testArray"
$o ->testArray ( ... )
return the array - this is just a test with an array as argument @param array $aDummy any array @param bool $bIsUseless is it useless or is it useless? @param type $sString @param type $iInt @return array
PHPDOCORselect output type
preview:
Syntax
?class=[class]&init=[initparams]&action=[action]&args=[parameters]&type=[type: raw|json]