get() публичный статический Метод

Returns pre-configured GET endpoint
public static get ( $path, string $handlerMethod = null ) : ApiEndpoint
$path
$handlerMethod string
Результат ApiEndpoint
 public function initialize()
 {
     $this->name('User')->model(User::class)->expectsJsonData()->transformer(UserTransformer::class)->handler(UserController::class)->itemKey('user')->collectionKey('users')->deny(AclRoles::UNAUTHORIZED, AclRoles::USER)->endpoint(ApiEndpoint::all()->allow(AclRoles::USER)->description('Returns all registered users'))->endpoint(ApiEndpoint::get('/me', 'me')->allow(AclRoles::USER)->description('Returns the currently logged in user'))->endpoint(ApiEndpoint::post('/authenticate', 'authenticate')->allow(AclRoles::UNAUTHORIZED)->deny(AclRoles::AUTHORIZED)->description('Authenticates user credentials provided in the authorization header and returns an access token')->exampleResponse(['token' => 'co126bbm40wqp41i3bo7pj1gfsvt9lp6', 'expires' => 1451139067]));
 }
 protected function initialize()
 {
     $this->name('Export')->handler(ExportController::class)->endpoint(ApiEndpoint::get('/documentation.json', 'documentation'))->endpoint(ApiEndpoint::get('/postman.json', 'postman'));
 }