PhalconRest\Api\ApiEndpoint::remove PHP Method

remove() public static method

Returns pre-configured remove endpoint
public static remove ( ) : static
return static
    public static function remove()
    {
        return self::factory('/{id}', HttpMethods::DELETE, 'remove')->name(self::REMOVE)->description('Removes the item identified by {id}');
    }

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::remove