PhalconRest\Api\ApiEndpoint::all PHP Method

all() public static method

Returns pre-configured all endpoint
public static all ( ) : static
return static
    public static function all()
    {
        return self::factory('/', HttpMethods::GET, 'all')->name(self::ALL)->description('Returns all items');
    }

Usage Example

 public function initialize()
 {
     $this->name('Photo')->model(Photo::class)->expectsJsonData()->transformer(PhotoTransformer::class)->itemKey('photo')->collectionKey('photos')->deny(AclRoles::UNAUTHORIZED)->handler(CrudResourceController::class)->endpoint(ApiEndpoint::all())->endpoint(ApiEndpoint::create())->endpoint(ApiEndpoint::find())->endpoint(ApiEndpoint::update())->endpoint(ApiEndpoint::remove());
 }
All Usage Examples Of PhalconRest\Api\ApiEndpoint::all