source: trunk/prototype/rest/core/ExpressoVersionResource.php @ 7342

Revision 7342, 389 bytes checked in by alexandrecorreia, 8 years ago (diff)

Ticket #3093 - Integrando API Rest(CELEPAR) com o ramo Trunk.

  • Property svn:executable set to *
Line 
1<?php
2
3class 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.