Closed bajzarpa closed 7 years ago
You could build a wrapper around rapid that could do this for you: http://rapidjs.io/docs#extending-making-a-wrapper. But I see what you mean about it being on every request that you pass the the config. We can make this a feature request to get out there soon!
@bajzarpa Been quite some time, but I finally got around to adding the extension feature. http://rapidjs.io/docs#configuration-extension
Is there a way, or you planning to implement a config option where i can set a file extension prefix?
I wanted to try this library a project of mine, but the API (Redmine) which i'm using is not following the REST standards at all. In my case, an url looks like this:
//example.com/issues/3.json
or//example.com/users.json
so i always have to specify the file extension, but in the docs i have not found option to to do this.