\APIProject
Synopsis
class APIProject
extends APINoun
{
- // members
- private static array $allowed_actions = ;
- // Inherited members from APINoun
- protected controller $parent;
- protected DataObject $record;
- protected Member $member;
- // methods
- public SS_HTTPResponse index()
- public SS_HTTPResponse fetch()
- protected SS_HTTPResponse getFetch()
- protected SS_HTTPResponse createFetch()
- public string Link()
- // Inherited methods from APINoun
- public void __construct()
- public void init()
- public DataObject getRecord()
- public Member getMember()
- protected SS_HTTPResponse getAPIResponse()
- protected boolean respondWithJSON()
- protected boolean respondWithText()
- protected array|null getRequestBody()
- protected SS_HTTPResponse message()
Hierarchy
Extends
Members
private
- $allowed_actions — array
protected
- $member — Member
- $parent — controller
- $record — DataObject
Methods
protected
public
Inherited from APINoun
protected
- getAPIResponse()
- getRequestBody()
- message() — Return a simple response with a message
- respondWithJSON()
- respondWithText()
public
- getMember()
- getRecord()
- init() — Enable basic auth on the API