Is there a particular reason why makeRequest() of OAuth2Client only allows GET and POST HTTP methods?
A typical REST API involves PUT, PATCH, and DELETE which are impossible to use with the client at this time.
In the code i see a comment // Method override as we always do a POST. but not quite sure why is it that "we ALWAYS do a POST".
In our current project we will be overriding makeRequest() method to support PUT, PATCH, and DELETE, if you are interested I can submit a PR to add such support here as well.
Is there a particular reason why
makeRequest()ofOAuth2Clientonly allows GET and POST HTTP methods?A typical REST API involves PUT, PATCH, and DELETE which are impossible to use with the client at this time.
In the code i see a comment // Method override as we always do a POST. but not quite sure why is it that "we ALWAYS do a POST".
In our current project we will be overriding
makeRequest()method to support PUT, PATCH, and DELETE, if you are interested I can submit a PR to add such support here as well.