title: using Path Variables in Apache Camel Rest
body: <p>How can i access PathVariables in the Apache Camel Rest module?</p>
  
  <p>I defined a route like this (following "using base path" from the <a href="http://camel.apache.org/rest-dsl.html" rel="noreferrer">documentation</a>):</p>
  
  <pre><code>rest("/customers/")
  .get("/{id}").to("direct:customerDetail")
  </code></pre>
  
  <p>How can i get a hold on the <code>{id}</code>-Parameter in the following route?</p>
  
  <p>Basically i would like to know what camel offers instead of <code>@PathVariable</code> (see following example)</p>
  
  <pre><code>@RequestMapping(value="/customers/{id}", method = RequestMethod.GET)
  public Customer customerDetail(@PathVariable String cId) {
      return getCustomer(cId);
  }
  </code></pre>