A single REST operation.

interface Operation {
    body: Representation;
    conditions?: Conditions;
    method: string;
    preferences: RepresentationPreferences;
    target: ResourceIdentifier;
}

Properties

Representation of the body and metadata headers.

conditions?: Conditions

Conditions the resource must fulfill for a valid operation.

method: string

The HTTP method (GET/POST/PUT/PATCH/DELETE/etc.).

Representation preferences of the response. Will be empty if there are none.

Identifier of the target.