Property | Type | Description | |
---|---|---|---|
$allowedRoles | |||
$deniedRoles | |||
$description | |||
$exampleResponse | |||
$handlerMethod | |||
$httpMethod | |||
$name | |||
$path | |||
$postedDataMethod |
Method | Description | |
---|---|---|
__construct ( $path, $httpMethod = HttpMethods::GET, $handlerMethod = null ) | ||
all ( ) : static | Returns pre-configured all endpoint | |
allow ( ) : static | Allows access to this endpoint for role with the given names. | |
create ( ) : static | Returns pre-configured create endpoint | |
delete ( $path, string $handlerMethod = null ) : |
Returns pre-configured DELETE endpoint | |
deny ( ) : static | Denies access to this endpoint for role with the given names. | |
description ( string $description ) : static | ||
exampleResponse ( string $exampleResponse ) | ||
expectsJsonData ( ) : static | Sets the posted data method to JSON_BODY | |
expectsPostData ( ) : static | Sets the posted data method to POST | |
factory ( string $path, string $httpMethod = HttpMethods::GET, string $handlerMethod = null ) : static | Returns endpoint with default values | |
find ( ) : static | Returns pre-configured find endpoint | |
get ( $path, string $handlerMethod = null ) : |
Returns pre-configured GET endpoint | |
getAllowedRoles ( ) : string[] | ||
getDeniedRoles ( ) : string[] | ||
getDescription ( ) : string | ||
getExampleResponse ( ) : string | ||
getHandlerMethod ( ) : string | ||
getHttpMethod ( ) : string | ||
getIdentifier ( ) : string | ||
getName ( ) : string | null | ||
getPath ( ) : string | ||
getPostedDataMethod ( ) : string | ||
handlerMethod ( string $handlerMethod ) : static | ||
head ( $path, string $handlerMethod = null ) : |
Returns pre-configured HEAD endpoint | |
name ( string $name ) : static | ||
options ( $path, string $handlerMethod = null ) : |
Returns pre-configured OPTIONS endpoint | |
patch ( $path, string $handlerMethod = null ) : |
Returns pre-configured PATCH endpoint | |
post ( $path, string $handlerMethod = null ) : |
Returns pre-configured POST endpoint | |
postedDataMethod ( string $method ) : static | ||
put ( $path, string $handlerMethod = null ) : |
Returns pre-configured PUT endpoint | |
remove ( ) : static | Returns pre-configured remove endpoint | |
update ( ) : static | Returns pre-configured update endpoint |
public __construct ( $path, $httpMethod = HttpMethods::GET, $handlerMethod = null ) |
public static all ( ) : static | ||
return | static |
public allow ( ) : static | ||
return | static |
public static create ( ) : static | ||
return | static |
public deny ( ) : static | ||
return | static |
public description ( string $description ) : static | ||
$description | string | Description for the endpoint |
return | static |
public exampleResponse ( string $exampleResponse ) | ||
$exampleResponse | string | Example of the response of the endpoint |
public expectsJsonData ( ) : static | ||
return | static |
public expectsPostData ( ) : static | ||
return | static |
public static find ( ) : static | ||
return | static |
public getAllowedRoles ( ) : string[] | ||
return | string[] | Array of allowed role-names |
public getDeniedRoles ( ) : string[] | ||
return | string[] | Array of denied role-names |
public getDescription ( ) : string | ||
return | string | Description for the endpoint |
public getExampleResponse ( ) : string | ||
return | string | Example of the response of the endpoint |
public getHandlerMethod ( ) : string | ||
return | string | Name of controller-method to be called for the endpoint |
public getHttpMethod ( ) : string | ||
return | string | HTTP method of the endpoint |
public getIdentifier ( ) : string | ||
return | string | Unique identifier for this endpoint (returns a combination of the HTTP method and the path) |
public getPostedDataMethod ( ) : string | ||
return | string | $method One of the method constants defined in PostedDataMethods |
public handlerMethod ( string $handlerMethod ) : static | ||
$handlerMethod | string | Name of controller-method to be called for the endpoint |
return | static |
public postedDataMethod ( string $method ) : static | ||
$method | string | One of the method constants defined in PostedDataMethods |
return | static |
public static remove ( ) : static | ||
return | static |
public static update ( ) : static | ||
return | static |