~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/lib/packages/agWebservicesPackage/config/routing.yml

  • Committer: Fabio Albuquerque
  • Date: 2011-08-20 19:17:20 UTC
  • Revision ID: fabiocbalbuquerque@gmail.com-20110820191720-tllqbrgm3zc3tp6w
Improvements in functional tests, 'where' clauses using filters

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
webservices_get_filtered:
 
2
  url:  /webservices/:datapoint.:sf_format/:token/:url_param
 
3
  class: sfDoctrineRoute
 
4
  param: { module: agWebservices, action: get }
 
5
  options: { model: sfGuardUserProfile, type: list, method: getByToken }
 
6
  requirements:
 
7
    sf_method: { sf_method: GET }
 
8
    sf_format: (?:xml|json)
 
9
    datapoint: (?:staff|organizations|events)
1
10
webservices_get:
2
 
  url:  /webservices/:datapoint.:sf_format/:token/:url_param
 
11
  url:  /webservices/:datapoint.:sf_format/:token
3
12
  class: sfDoctrineRoute
4
13
  param: { module: agWebservices, action: get }
5
14
  options: { model: sfGuardUserProfile, type: list, method: getByToken }
29
38
  requirements: { datapoint: (?:staff|organizations|eventFacilities) }
30
39
webservices_index:
31
40
  url:  /webservices/index
 
41
  param: { module: agWebservices, action: index }
 
42
webservices:
 
43
  url:  /webservices/
32
44
  param: { module: agWebservices, action: index }
 
 
b'\\ No newline at end of file'