You are here

public function RestWSFormatInterface::updateResource in RESTful Web Services 7.2

Same name and namespace in other branches
  1. 7 restws.formats.inc \RestWSFormatInterface::updateResource()

Update a resource.

Parameters

RestWSResourceControllerInterface $resourceController: The controller used to update the resource.

int|string $id: The id of the resource that should be updated.

string $data: The representation of the resource.

1 method overrides RestWSFormatInterface::updateResource()
RestWSBaseFormat::updateResource in ./restws.formats.inc
Updates a resource.

File

./restws.formats.inc, line 49
RESTful web services module formats.

Class

RestWSFormatInterface
Interface implemented by formatter implementations for the http client.

Code

public function updateResource($resourceController, $id, $data);