Skip to content

[F] $createsResource

function $createsResource(
context,
entity,
resourceType
): void;

Marks an operation as creating a resource, defaulting its HTTP verb to POST. Also copies the resource’s collection segment onto the operation for automatic routing.

ParameterType
contextDecoratorContext
entityOperation
resourceTypeModel

void