json-rest-api 1.0.2 → 1.0.3
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 +1 -1
- package/package.json +2 -2
- package/plugins/core/rest-api-plugin.js +1 -1
- package/test-examples/package-lock.json +0 -906
- package/test-examples/package.json +0 -15
- package/test-examples/test-basic-api.js +0 -11
- package/test-examples/test-books-resource.js +0 -116
- package/test-examples/test-complete-file-upload.js +0 -140
- package/test-examples/test-debug.js +0 -28
- package/test-examples/test-express-plugin.js +0 -177
- package/test-examples/test-express-simple.js +0 -28
- package/test-examples/test-express-with-import.js +0 -71
- package/test-examples/test-file-upload.js +0 -132
- package/test-examples/test-http-plugin.js +0 -159
- package/test-examples/test-programmatic-api.js +0 -188
- package/test-examples/test-rest-api-plugin.js +0 -13
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ This tutorial will guide you through building a REST API using the `jsonrestapi`
|
|
|
18
18
|
First, let's install the required packages:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npm install hooked-api
|
|
21
|
+
npm install hooked-api json-rest-api
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Create a new file called `api.js`:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "json-rest-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"description": "REST API plugin for hooked-api with JSON:API compliance",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"hooked-api": "^1.0.0",
|
|
22
|
-
"
|
|
22
|
+
"json-rest-schema": "^1.0.0",
|
|
23
23
|
"qs": "^6.0.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|