rest-proxy.php

Simple proxy for RESTful APIs
git clone git://git.finwo.net/app/rest-proxy.php
Log | Files | Refs | README

config.yml (320B)


      1 
      2 # Application class
      3 application: Finwo\RestProxy
      4 
      5 # Note of the authors
      6 authors:
      7   - Robin Bron <robin@finwo.nl>
      8 
      9 routes:
     10   rest_proxy:
     11     type: rest
     12     pattern: ^\/(?<resource>[a-z\/]+)(\.(?<format>[a-z]+))?$
     13     method: GET
     14     prefix: /rest
     15     controller: Finwo\RestProxy:Rest:get
     16     defaults:
     17       format: json