Skip to content
module@ember-data/rest Legacy Package

Legacy package

@ember-data/rest is a legacy package. New code should use @warp-drive/utilities/rest instead.

For an app still on these packages, see Legacy Package Setup.

Request builders for RESTful APIs.

A request builder is a function that takes the few things that vary about a request, such as the resource type, an id, or query params, and returns the request options object you pass to store.request(): the url, method, and headers, plus the WarpDrive-specific fields such as op that let the cache understand the request. The builders live in the @ember-data/rest/request entry point.

The output works with either store.request() or requestManager.request(). URLs are stable: the same query produces the same URL every time, even if the order of keys in the query or values in an array changes. URLs follow the most common REST format, camelCase pluralized resource types.

Released under the MIT License.