title: REST URL design for greater than, less than operations
body: <p>I am having a bit of difficulty designing a url for a rest service that can handle requests for customers based on pagination as one type of operation or requesting greater than or less than operators as another type of operation.  For example:</p>
  
  <p><strong>Pagination:</strong></p>
  
  <pre><code>GET /customers/0/100
  </code></pre>
  
  <p>This will get 100 customers for page 0.</p>
  
  <p><strong>Greater/Less Than:</strong></p>
  
  <p>I also need a URL design to get customers that have an id greater than n (e.g. lets say 716).  How would you incorporate "greater than" or "less than" in a url. I have to bear in mind that characters ">" and "&lt;" are illegal in urls.  I think this url design looks odd:</p>
  
  <pre><code>GET /customers/greaterthan/716
  GET /customers/lessthan/716
  </code></pre>
  
  <p>I can't use a range as that would conflict with the pagination pattern specified above and is not a nice solution in any case e.g.:</p>
  
  <pre><code>GET /customers/716/999999999999
  GET /customers/0/716
  </code></pre>
  
  <p>I'm sure that I'm missing something obvious - does anyone have a better solution?</p>