3 ms·
Man I really really dislike this proposal. Putting the http request method into the URI... an just sometimes... oh and maybe do "POST,PUT,PATCH /something". J
by imetatroll 3y ago
Man I really really dislike this proposal. Putting the http request method into the URI... an just sometimes... oh and maybe do "POST,PUT,PATCH /something". Just no thank you. Make a dedicated method that accepts http request method names if you must do something.
- thiht 3y agoWhy? It really doesn't change a lot. You can't "really dislike" the whole proposal for just a stylistic issue. > Make a dedicated method that accepts http request method names What problem does that solve compared to embedding the method in the string?
- burnished 3y agoYes, you can. Besides the API is more than just a stylistic issue. The problem it solves is not having string typed stuff which is a consistent pain point where it happens.
- greatgib 3y agoI agree, does not make much sense to design it like that. The function could have another argument for listing methods or options.