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
This commit is contained in:
Erik Amaru Ortiz
2013-08-22 11:10:04 -04:00
parent da8e762256
commit d63fb635d6
4 changed files with 122 additions and 18 deletions

View File

@@ -0,0 +1,21 @@
<?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";
}
}