PhalconRest\Api\ApiEndpoint::update PHP Method

update() public static method

Returns pre-configured update endpoint
public static update ( ) : static
return static
    public static function update()
    {
        return self::factory('/{id}', HttpMethods::PUT, 'update')->name(self::UPDATE)->description('Updates an existing item identified by {id}, using the posted data');
    }

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