Recognize_path should account for HTTP method
Author: ideaoforderCreated Feb 23, 2024Updated Oct 8, 2024
Labelsfeature request
In a RESTful API, you'll use the same path multiple times, but with a different REST verb.
These will return the same endpoint:
GET /ordersPOST /orders
So will these:
GET /orders/123PUT /orders/123DELETE /orders/123
Ideally, we'd be able to pass that in as an option:
API.recognize_path('/orders/123', method: 'PUT')Source: ruby-grape/grape