PHP Webiny\Component\Rest\Interfaces Namespace

Interfaces

Name Description
AccessInterface Implement access interface if you don't wish that Rest component automatically handles the access control checks for you.
CacheKeyInterface Rest component creates cache key from: - url path - query parameters - http method - post parameters - payload parameters - api version (we use the actual version number, not the aliases like current, and latest)
CrudInterface Implementing this interface you will get the basic CRUD methods and behavior described below:
MiddlewareInterface Implement middleware interface if you want to handle Rest method execution for yourself.
VersionInterface Implement this interface on your api class when you wish to control api versions.