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

Revision 7732, 461 bytes checked in by pereira.jair, 11 years ago (diff)

Ticket #3267 - Re-implementação do Recurso para utilizar a nova Agenda do Expresso.

  • Property svn:executable set to *
Line 
1<?php
2
3class ExpressoVersionResource extends ExpressoAdapter {         
4
5        public function get ($request) {
6                return $this->post($request);
7        }
8
9        public function post($request){
10                // to Receive POST Params (use $this->params)
11                parent::post($request);                 
12               
13                $result = array('expressoVersion' =>  $this->getExpressoVersion(),
14                                                'apiVersion' => '1.0');
15                $this->setResult($result);
16
17                //to Send Response (JSON RPC format)
18                return $this->getResponse();           
19        }
20
21}
Note: See TracBrowser for help on using the repository browser.