@ember-data-types/rest 5.8.0-beta.0 → 5.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +2 -2
- package/unstable-preview-types/request.d.ts +3 -30
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<p align="center">Elegantly composable. Made for <strong>REST</strong>ful APIs</p>
|
|
19
19
|
|
|
20
|
-
This package provides utilities for working with **REST**ful APIs with [*Ember***Data**](https://github.com/
|
|
20
|
+
This package provides utilities for working with **REST**ful APIs with [*Ember***Data**](https://github.com/warp-drive-data/warp-drive/).
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
@@ -38,7 +38,7 @@ pnpm add @ember-data/rest
|
|
|
38
38
|
|
|
39
39
|
## Getting Started
|
|
40
40
|
|
|
41
|
-
If this package is how you are first learning about EmberData, we recommend starting with learning about the [Store](https://github.com/
|
|
41
|
+
If this package is how you are first learning about EmberData, we recommend starting with learning about the [Store](https://github.com/warp-drive-data/warp-drive/blob/main/packages/store/README.md) and [Requests](https://github.com/warp-drive-data/warp-drive/blob/main/packages/request/README.md)
|
|
42
42
|
|
|
43
43
|
## Request Builders
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-data-types/rest",
|
|
3
|
-
"version": "5.8.0-beta.
|
|
3
|
+
"version": "5.8.0-beta.1",
|
|
4
4
|
"files": [
|
|
5
5
|
"unstable-preview-types",
|
|
6
6
|
"README.md",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+ssh://git@github.com:
|
|
16
|
+
"url": "git+ssh://git@github.com:warp-drive-data/warp-drive.git",
|
|
17
17
|
"directory": "packages/rest"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
declare module '@ember-data/rest/request' {
|
|
2
2
|
/**
|
|
3
|
-
|
|
4
|
-
<img
|
|
5
|
-
class="project-logo"
|
|
6
|
-
src="https://raw.githubusercontent.com/emberjs/data/4612c9354e4c54d53327ec2cf21955075ce21294/ember-data-logo-light.svg#gh-light-mode-only"
|
|
7
|
-
alt="EmberData"
|
|
8
|
-
width="240px"
|
|
9
|
-
title="EmberData"
|
|
10
|
-
/>
|
|
11
|
-
</p>
|
|
12
|
-
|
|
13
|
-
This package provides utilities for working with **REST**ful APIs with [*Ember***Data**](https://github.com/emberjs/data/).
|
|
14
|
-
|
|
15
|
-
## Installation
|
|
16
|
-
|
|
17
|
-
Install using your javascript package manager of choice. For instance with [pnpm](https://pnpm.io/)
|
|
18
|
-
|
|
19
|
-
```sh
|
|
20
|
-
pnpm add @ember-data/json-api
|
|
21
|
-
```
|
|
3
|
+
This package provides utilities for working with **REST**ful APIs with [*Ember***Data**](https://github.com/warp-drive-data/warp-drive/).
|
|
22
4
|
|
|
23
5
|
## Usage
|
|
24
6
|
|
|
@@ -43,8 +25,8 @@ declare module '@ember-data/rest/request' {
|
|
|
43
25
|
* /
|
|
44
26
|
```
|
|
45
27
|
|
|
46
|
-
Request builder output is ready to go for use with
|
|
47
|
-
|
|
28
|
+
Request builder output is ready to go for use with {@link Store.request | store.request},
|
|
29
|
+
{@link RequestManager.request | manager.request} and most conventional REST APIs.
|
|
48
30
|
|
|
49
31
|
Resource types are pluralized and camelized for the url.
|
|
50
32
|
|
|
@@ -53,16 +35,7 @@ declare module '@ember-data/rest/request' {
|
|
|
53
35
|
|
|
54
36
|
URLs follow the most common REST format (camelCase pluralized resource types).
|
|
55
37
|
|
|
56
|
-
### Available Builders
|
|
57
|
-
|
|
58
|
-
- [createRecord](https://api.emberjs.com/ember-data/release/functions/@ember-data%2Frest/createRecord)
|
|
59
|
-
- [deleteRecord](https://api.emberjs.com/ember-data/release/functions/@ember-data%2Frest/deleteRecord)
|
|
60
|
-
- [findRecord](https://api.emberjs.com/ember-data/release/functions/@ember-data%2Frest/findRecord)
|
|
61
|
-
- [query](https://api.emberjs.com/ember-data/release/functions/@ember-data%2Frest/query)
|
|
62
|
-
- [updateRecord](https://api.emberjs.com/ember-data/release/functions/@ember-data%2Frest/updateRecord)
|
|
63
|
-
|
|
64
38
|
* @module
|
|
65
|
-
* @public
|
|
66
39
|
*/
|
|
67
40
|
export { findRecord, query, deleteRecord, createRecord, updateRecord } from "@warp-drive/utilities/rest";
|
|
68
41
|
|