$revel
$revel : \Revel\Revel
API wrapper that deals with {@link Establishment establishments}.
$revel : \Revel\Revel
__construct(\Revel\Revel $revel)
Api constructor.
\Revel\Revel | $revel | Reference to the core {@link Revel} object. |
get(string $resource) : \Revel\Api\Response
GET resource data.
string | $resource | The API endpoint, relative to the domain. |
post(string $resource, array $body = array()) : \Revel\Api\Response
POST to a resource.
string | $resource | The API endpoint, relative to the domain. |
array | $body | The POST body. |
all() : array<mixed,\Revel\Models\Establishment>
Get all {@link Establishment establishments}.
findById(integer|string $id) : \Revel\Models\Establishment
Find one establishment using its ID.
integer|string | $id | The establishment ID or resource URL. |
call(string $method, string $resource, array $body = array()) : \Revel\Api\Response
Perform a Revel API request.
string | $method | The HTTP method. |
string | $resource | The API endpoint, relative to the domain. |
array | $body | The request body. |