Closed hadjedjvincent closed 4 years ago
Use GET instead of POST while retrieving commits.
GET
POST
The use of POST makes any parameter added to the POST body and converted to JSON.
As indicated into the Bitbucket API documentation, theses routes are using GET and not POST method. https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commits
By using $this->get(), all the parameters are now correctly added to the URI.
$this->get()
Thanks. 🍻
Use
GET
instead ofPOST
while retrieving commits.The use of
POST
makes any parameter added to thePOST
body and converted to JSON.As indicated into the Bitbucket API documentation, theses routes are using
GET
and notPOST
method. https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/commitsBy using
$this->get()
, all the parameters are now correctly added to the URI.