-- - The `JSONAPIAdapter` is an adapter whichtransforms the store's - requests into HTTP requests that follow the [JSON API format](http://jsonapi.org/format/). - - ## JSON API Conventions - - The JSONAPIAdapter uses JSON API conventions for building the URL - for a record and selecting the HTTP verb to use with a request. The - actions you can take on a record map onto the following URLs in the - JSON API adapter: - -- ⚠️ This is LEGACY documentation for a feature that is no longer encouraged to be used. - If starting a new app or thinking of implementing a new adapter, consider writing a - Handler instead to be used with the RequestManager -
-
- Action - | -- HTTP Verb - | -- URL - | -
---|---|---|
- `store.findRecord('post', 123)` - | -- GET - | -- /posts/123 - | -
- `store.findAll('post')` - | -- GET - | -- /posts - | -
- Update `postRecord.save()` - | -- PATCH - | -- /posts/123 - | -
- Create `store.createRecord('post').save()` - | -- POST - | -- /posts - | -
- Delete `postRecord.destroyRecord()` - | -- DELETE - | -- /posts/123 - | -
++ + The `JSONAPIAdapter` is an adapter whichtransforms the store's + requests into HTTP requests that follow the [JSON API format](http://jsonapi.org/format/). + + ## JSON API Conventions + + The JSONAPIAdapter uses JSON API conventions for building the URL + for a record and selecting the HTTP verb to use with a request. The + actions you can take on a record map onto the following URLs in the + JSON API adapter: + ++ ⚠️ This is LEGACY documentation for a feature that is no longer encouraged to be used. + If starting a new app or thinking of implementing a new adapter, consider writing a + Handler instead to be used with the RequestManager +
+
+ Action + | ++ HTTP Verb + | ++ URL + | +
---|---|---|
+ `store.findRecord('post', 123)` + | ++ GET + | ++ /posts/123 + | +
+ `store.findAll('post')` + | ++ GET + | ++ /posts + | +
+ Update `postRecord.save()` + | ++ PATCH + | ++ /posts/123 + | +
+ Create `store.createRecord('post').save()` + | ++ POST + | ++ /posts + | +
+ Delete `postRecord.destroyRecord()` + | ++ DELETE + | ++ /posts/123 + | +