Location: PHPKode > scripts > REST Server > rest-server/example/UserProfile.class.php
<?

class UserProfile implements RestView {
    
    function show(RestServer $rest) {
        $user = $rest->getQuery(2);        
        $rest->getResponse()->setResponse("<h1> User ".$user." </h1>");
        $rest->getResponse()->addResponse("<p> His profile </p>");
        return $rest ;
    }
}


?>
Return current item: REST Server