Files
luos/workflow/engine/services/api/Services_Api_Say.php
Erik Amaru Ortiz d63fb635d6 UPDATE, Update Restler implementation ver 3.0
- First Funcional Commit to implement Restler 3.0
- PM supports now urls requests like:
	GET /api/<workspace_name>/class_name/method?param1=value1
   example:
        GET /api/workflow/class_name/mothod?param1=value1

   There is an equivalent expresion for url above

	GET /<workspace_name>-api/class_name/mothod?param1=value1
   example:
	GET /workflow-api/class_name/mothod?param1=value1

 * and all route expressions that Restler supports
2013-08-22 11:10:04 -04:00

21 lines
392 B
PHP

<?php
/**
* Created by JetBrains PhpStorm.
* User: erik
* Date: 8/21/13
* Time: 4:55 PM
* To change this template use File | Settings | File Templates.
*/
class Services_Api_Say
{
public function hello($to='world')
{
return array('success'=>true, "message"=>"Hello $to!");
}
public function hi($to, $name)
{
return "Hi $to -> $name";
}
}