Base URL or RFC 6570 URI template for this resource.
OptionalentityClass:
EntityClass<T>
Optional mapper that converts raw JSON objects into entity instances.
Extra backend options merged into every request.
Expand an RFC 6570 URI template with the provided parameters.
URI template such as
/api/{org}/repos/{repo}.
Values used for URI template expansion.
The expanded URL.
Create a resource using POST.
Request body to create.
The server representation, mapped through
entityClass when set.
Delete a resource by ID.
Resource identifier appended to the base URL.
true when the request succeeds, otherwise
false.
Fetch one resource by ID using GET.
Resource identifier appended to the base URL.
Additional URI template or query parameters.
The mapped entity, raw response value, or
null when empty.
Fetch a collection.
Parameters are used for URI template expansion and are
also forwarded to $http as query params.
Non-array responses resolve to an empty array.
Typed REST resource client backed by RestBackend.
A
RestServiceis usually created by injecting$restand calling it with a base URL, optional EntityClass, and optional backend request defaults.