title: how to solve this error "route cannot be declared with query parameters,please add them when you call the route"
body: <p>I want to mock the URL with query parameter like</p>
  <p>its throwing error:</p>
  <p>Cannot GET <code>/wp-json/wp/v2/categories</code></p>
  <p>When I save URL without query parameter eg:</p>
  <pre><code>/list/GENERIC_LIST/list/GENERIC_LIST
  </code></pre>
  <p>then its working fine.</p>
  <p>Pls, help to store URL with a query parameter.</p>