\LiftKit\ControllerRestInterface

Interface for REST Controllers

Defines an interface for Controllers in a REST-based architecture.

Summary

Methods
Constants
index()
get()
insert()
update()
delete()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get()

get(mixed  $id) : \LiftKit\Response\Response

Get

Returns a single resource.

Parameters

mixed $id

Identifier of resource

Returns

\LiftKit\Response\Response

update()

update(mixed  $id) : \LiftKit\Response\Response

Update

Updates an existing resource

Parameters

mixed $id

Identifier of resource

Returns

\LiftKit\Response\Response

delete()

delete(mixed  $id) : \LiftKit\Response\Response

Delete

Deletes an existing resource.

Parameters

mixed $id

Identifier of resource

Returns

\LiftKit\Response\Response