kbsali / php-redmine-api

A simple PHP Redmine API client, Object Oriented

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecate `AbstractApi::get()`, `AbstractApi::post()`, `AbstractApi::put()` and `AbstractApi::delete()`

Art4 opened this issue · comments

The methods AbstractApi::get(), AbstractApi::post(), AbstractApi::put() and AbstractApi::delete() are using AbstractApi::getContentTypeFromPath() to guess the content type from the path. It is preferable that the content type is provided directly by the methods in the API classes. This can be realized by using HttpClient::request() directly instead of using the method of AbstractApi. Therefore this methods could be deprecated.

  • AbstractApi::get(): #381
  • AbstractApi::post(): #383
  • AbstractApi::put(): #388
  • AbstractApi::delete(): #392