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:
21
workflow/engine/services/api/Services_Api_Say.php
Normal file
21
workflow/engine/services/api/Services_Api_Say.php
Normal 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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user