Closed brunonymous closed 4 years ago
This is related to #14
Sorry, i hadn't seen this issue. So the only solution for now is to specify the .json extension at the end of the URL:
curl -v http://localhost:5000/api/v1/websites/foobar.com.json
Until a better solution is found. :-) Thank you.
Hello,
Is it possible to disable the route extension (I use Raisin 0.82)?
The following function does not work:
api_format 'json';
Due to the route extension, URLs path containing the dot character return the HTTP 406 error:
If the negotiate_format () method detects a point in the URL path, then this is automatically used as a format :
The code patched as follows works a little better:
But unfortunately the route param is "foobar" instead of "foobar.com".
What is the best practice for disabling the route extension?
Thank you in advance.