Ntb\RestAPI\TestController
Synopsis
class TestController
extends BaseRestController
implements
TestOnly
{
- // members
- private static array $allowed_actions = ;
- // methods
- public void get()
- public void post()
- public void put()
- public void delete()
- public void patch()
- // Inherited methods from BaseRestController
- public void init()
- public null head()
- protected HTMLText|SS_HTTPResponse handleAction()
- protected bool isAuthenticated()
- protected bool isAdmin()
- protected SS_HTTPResponse addCORSHeaders()
- protected Member currentUser()
Hierarchy
Tasks
Line | Task |
---|---|
165 | body could be an exception; check it before the response is generated |
Members
private
- $allowed_actions
Methods
public
Inherited from Ntb\RestAPI\BaseRestController
protected
- addCORSHeaders()
- currentUser() — Return the current user from the request.
- handleAction() — handleAction implementation for rest controllers. This handles the requested action differently then the standard implementation.
- isAdmin() — Check if the user has admin privileges.
- isAuthenticated() — Check, if the request is authenticated.