for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace seregazhuk\Favro\Api\Endpoints;
abstract class CrudEndpoint extends Endpoint
{
/**
* @param array $attributes
* @return array
*/
public function create(array $attributes)
return $this
->http
->post(
$this->makeRequestUrl(),
$attributes,
$this->headers()
);
}
* @param string $itemId
* @return mixed
public function update($itemId, array $attributes)
->put(
$this->makeRequestUrl($itemId),
* @param bool $everywhere
public function delete($itemId, $everywhere = false)
$params = $everywhere ? ['everywhere' => $everywhere] : [];
->delete(
$params,