~fabiocbalbuquerque/sahana-agasti/web-services

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
webservices_get_filtered:
  url:  /webservices/:datapoint.:sf_format/:token/:url_param
  class: sfDoctrineRoute
  param: { module: agWebservices, action: get }
  options: { model: sfGuardUserProfile, type: list, method: getByToken }
  requirements:
    sf_method: { sf_method: GET }
    sf_format: (?:xml|json)
    datapoint: (?:staff|organizations|events)
webservices_get:
  url:  /webservices/:datapoint.:sf_format/:token
  class: sfDoctrineRoute
  param: { module: agWebservices, action: get }
  options: { model: sfGuardUserProfile, type: list, method: getByToken }
  requirements:
    sf_method: { sf_method: GET }
    sf_format: (?:xml|json)
    datapoint: (?:staff|organizations|events)
webservices_post:
  url:  /webservices/:datapoint/:token/:json_objects
  class: sfDoctrineRoute
  param: { module: agWebservices, action: post }
  options: { model: sfGuardUserProfile, type: list, method: getByToken }
  requirements:
    sf_method: { sf_method: POST }
    datapoint: (?:staff|organizations|events)
webservices_getevent:
  url:  /webservices/getevent/:token/:event/:datapoint.:sf_format
  class: sfDoctrineRoute
  param: { module: agWebservices, action: getevent }
  options: { model: sfGuardUserProfile, type: list, method: getByToken }
  requirements:
    sf_format: (?:xml|json)
    datapoint: (?:eventFacilities)
webservices_list:
  url:  /webservices/list/:datapoint
  param: { module: agWebservices, action: list }
  requirements: { datapoint: (?:staff|organizations|eventFacilities) }
webservices_index:
  url:  /webservices/index
  param: { module: agWebservices, action: index }
webservices:
  url:  /webservices/
  param: { module: agWebservices, action: index }