You are here

public function RestWSResourceControllerInterface::create in RESTful Web Services 7.2

Same name and namespace in other branches
  1. 7 restws.entity.inc \RestWSResourceControllerInterface::create()

Create a new resource.

Parameters

array $values: Array of values for properties of the resource, keyed by property name. At least for all required properties values have to be given.

Return value

int|string The id of the newly created resource.

2 methods override RestWSResourceControllerInterface::create()
MyModuleBookResourceController::create in ./restws.api.php
RestWSEntityResourceController::create in ./restws.entity.inc
Create a new resource.

File

./restws.entity.inc, line 40
RESTful web services module integration for entities.

Class

RestWSResourceControllerInterface
Specifies CRUD and access methods for resources.

Code

public function create(array $values);