2013-11-26 17:17:36 -04:00
|
|
|
<?php
|
|
|
|
|
namespace Services\Api\ProcessMaker;
|
|
|
|
|
|
2013-12-03 17:10:18 -04:00
|
|
|
use \ProcessMaker\Services\Api;
|
2013-11-26 17:17:36 -04:00
|
|
|
use \Luracast\Restler\RestException;
|
|
|
|
|
|
|
|
|
|
class Test2 extends Api
|
|
|
|
|
{
|
|
|
|
|
|
2014-01-25 06:10:24 -04:00
|
|
|
public function hello2()
|
2013-11-26 17:17:36 -04:00
|
|
|
{
|
2013-12-02 16:53:08 -04:00
|
|
|
return 'Hello #2';
|
2013-11-26 17:17:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @url GET /getHello
|
|
|
|
|
*/
|
2014-01-25 06:10:24 -04:00
|
|
|
public function helloworld($param = '')
|
2013-11-26 17:17:36 -04:00
|
|
|
{
|
|
|
|
|
return 'Greetings, from a overridden url ' . $param;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @url GET /sample/other/large/:name
|
|
|
|
|
*/
|
2014-01-25 06:10:24 -04:00
|
|
|
public function sampleOther($name)
|
2013-11-26 17:17:36 -04:00
|
|
|
{
|
|
|
|
|
return 'Name: ' . $name;
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-01-25 06:10:24 -04:00
|
|
|
|