메소드 |
설명 |
|
__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 ) : ApiEndpoint |
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 ) : ApiEndpoint |
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 ) : ApiEndpoint |
Returns pre-configured HEAD endpoint |
|
name ( string $name ) : static |
|
|
options ( $path, string $handlerMethod = null ) : ApiEndpoint |
Returns pre-configured OPTIONS endpoint |
|
patch ( $path, string $handlerMethod = null ) : ApiEndpoint |
Returns pre-configured PATCH endpoint |
|
post ( $path, string $handlerMethod = null ) : ApiEndpoint |
Returns pre-configured POST endpoint |
|
postedDataMethod ( string $method ) : static |
|
|
put ( $path, string $handlerMethod = null ) : ApiEndpoint |
Returns pre-configured PUT endpoint |
|
remove ( ) : static |
Returns pre-configured remove endpoint |
|
update ( ) : static |
Returns pre-configured update endpoint |
|