@yrest/cli 0.13.0 → 0.13.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 +4 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,14 +8,17 @@
|
|
|
8
8
|
[](https://www.npmjs.com/package/@yrest/cli)
|
|
9
9
|
[](LICENSE)
|
|
10
10
|
[](https://github.com/aggiovato/yRest/actions)
|
|
11
|
+
[](https://app.netlify.com/projects/cca9b352-b564-4027-a05d-af26728c8ac3/deploys)
|
|
11
12
|
[](https://www.npmjs.com/package/@yrest/cli)
|
|
12
13
|
[](https://www.typescriptlang.org/)
|
|
13
|
-
[](https://socket.dev/npm/package/@yrest/cli)
|
|
14
15
|
|
|
15
16
|
YAML-powered json-server alternative. Zero-config REST API mock server with full CRUD, relations, filters and snapshots from a `db.yml` file.
|
|
16
17
|
|
|
17
18
|
> Think `json-server`, but powered by YAML — with relations, filters, pagination, nested routes, snapshots and custom handlers.
|
|
18
19
|
|
|
20
|
+
**[📖 Full documentation](https://yrest-docs.netlify.app)** — Getting Started, CLI reference, YAML format, relations, custom routes, SSE streams, playground and more.
|
|
21
|
+
|
|
19
22
|
```yaml
|
|
20
23
|
# db.yml
|
|
21
24
|
users:
|
package/dist/index.d.mts
CHANGED
|
@@ -105,10 +105,10 @@ type FieldDef = {
|
|
|
105
105
|
* users:
|
|
106
106
|
* name: required # shorthand
|
|
107
107
|
* email:
|
|
108
|
-
*
|
|
109
|
-
*
|
|
108
|
+
* _required: true
|
|
109
|
+
* _format: email
|
|
110
110
|
* age:
|
|
111
|
-
*
|
|
111
|
+
* _type: integer
|
|
112
112
|
* ```
|
|
113
113
|
*/
|
|
114
114
|
type SchemaBlock = Record<string, Record<string, FieldDef>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -105,10 +105,10 @@ type FieldDef = {
|
|
|
105
105
|
* users:
|
|
106
106
|
* name: required # shorthand
|
|
107
107
|
* email:
|
|
108
|
-
*
|
|
109
|
-
*
|
|
108
|
+
* _required: true
|
|
109
|
+
* _format: email
|
|
110
110
|
* age:
|
|
111
|
-
*
|
|
111
|
+
* _type: integer
|
|
112
112
|
* ```
|
|
113
113
|
*/
|
|
114
114
|
type SchemaBlock = Record<string, Record<string, FieldDef>>;
|
package/package.json
CHANGED