title: Configuration REST resources in mORMot
body: <p>I want to configure pretty simple access to my REST resource, based on information (<a href="http://synopse.info/forum/viewtopic.php?id=1833" rel="nofollow">http://synopse.info/forum/viewtopic.php?id=1833</a>) regarding REST routing in mORMot.</p>
  
  <p>I need to call url as <code>localhost/api/apservice/station/1</code>, but code below works only for calling as <code>localhost/api/apservice/station?stationid={stationid}</code></p>
  
  <pre><code>  IAPIService = interface(IInvokable)
      ['{0F23D411-C3F0-451A-8580-AB5BE6E521E6}']
      function Station(StationID: Integer; out Station: TSQLStation): TCQRSResult;
    end;
  
    TAPIService = class(TInterfacedObject, IAPIService)
    private
      fDbConnection : TSQLDBConnectionProperties;
    public
      constructor Create(const aProps: TSQLDBConnectionProperties ); overload;
    public
      function Station(StationID: Integer; out Station: TSQLStation): TCQRSResult;
    end;
  </code></pre>
  
  <p>Please advise how can I correctly configure REST routing to my resources? I need examples for:</p>
  
  <ul>
  <li>localhost/api/apservice/station/1 - <code>return details for station=1</code></li>
  <li>localhost/api/apservice/station/groups - <code>return all groups from station</code></li>
  <li>localhost/api/apservice/customers/{aCustomerId}/reports/orders/{aOrderNumber}/details?Filter={aDetailFilter}'</li>
  </ul>