final class ApiEndpointRegistry (View source)

Methods

add(string $method, string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)
get(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)
post(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)
put(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)
patch(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)
delete(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)
findByName(string $name)
findByRequest(string $method, string $path)
array
all()
array

Details

add

ApiEndpoint add(string $method, string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)

No description

Parameters

string $method
string $path
string $handler
string $name
string $summary
string $description
ApiAccess $access
ApiEndpointMetadata|null $metadata

Return Value

ApiEndpoint

get

ApiEndpoint get(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)

No description

Parameters

string $path
string $handler
string $name
string $summary
string $description
ApiAccess $access
ApiEndpointMetadata|null $metadata

Return Value

ApiEndpoint

post

ApiEndpoint post(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)

No description

Parameters

string $path
string $handler
string $name
string $summary
string $description
ApiAccess $access
ApiEndpointMetadata|null $metadata

Return Value

ApiEndpoint

put

ApiEndpoint put(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)

No description

Parameters

string $path
string $handler
string $name
string $summary
string $description
ApiAccess $access
ApiEndpointMetadata|null $metadata

Return Value

ApiEndpoint

patch

ApiEndpoint patch(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)

No description

Parameters

string $path
string $handler
string $name
string $summary
string $description
ApiAccess $access
ApiEndpointMetadata|null $metadata

Return Value

ApiEndpoint

delete

ApiEndpoint delete(string $path, string $handler, string $name, string $summary, string $description, ApiAccess $access = ApiAccess::Protected, ApiEndpointMetadata|null $metadata = null)

No description

Parameters

string $path
string $handler
string $name
string $summary
string $description
ApiAccess $access
ApiEndpointMetadata|null $metadata

Return Value

ApiEndpoint

findByName

ApiEndpoint|null findByName(string $name)

No description

Parameters

string $name

Return Value

ApiEndpoint|null

findByRequest

ApiEndpoint|null findByRequest(string $method, string $path)

No description

Parameters

string $method
string $path

Return Value

ApiEndpoint|null

all

array all()

No description

Return Value

array