- 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
21 lines
392 B
PHP
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";
|
|
}
|
|
} |