client-nodejs icon indicating copy to clipboard operation
client-nodejs copied to clipboard

Prefer POST requests using json instead of x-www-form-urlencoded

Open lucianolxp opened this issue 4 years ago • 1 comments

the official Pipedrive openapi file uses mixed content-type for different POST or PUT endpoints:

  • application/x-www-form-urlencoded: 46 places
  • application/json: 152 places.

On the other hand, Pipedrive also recommends using json for all requests (link)

The use of x-www-form-urlencoded on the SDK caused this issue

As I understand, this SDK is generated from the openApi file, so a simple solution would be to update the openApi file first and then update the SDK

lucianolxp avatar Aug 11 '20 16:08 lucianolxp

Sorry for the long response. We have taken this issue to our backlog.

RuTsEST avatar Nov 18 '21 13:11 RuTsEST