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