Revision 7442,
389 bytes
checked in by eduardow, 12 years ago
(diff) |
Ticket #3093 - Integrando API Rest (CELEPAR) - commit para o branches.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[7442] | 1 | <?php |
---|
| 2 | |
---|
| 3 | class ExpressoVersionResource extends ExpressoAdapter { |
---|
| 4 | public function post($request){ |
---|
| 5 | // to Receive POST Params (use $this->params) |
---|
| 6 | parent::post($request); |
---|
| 7 | |
---|
| 8 | $result = array('expressoVersion' => $this->getExpressoVersion(), |
---|
| 9 | 'apiVersion' => '1.0'); |
---|
| 10 | $this->setResult($result); |
---|
| 11 | |
---|
| 12 | //to Send Response (JSON RPC format) |
---|
| 13 | return $this->getResponse(); |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.