apimock-rs 4.0.0-rc.13 → 4.0.0-rc.15

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.
Files changed (2) hide show
  1. package/README.md +43 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,7 +1,50 @@
1
1
  # API Mock (apimock-rs)
2
2
 
3
+ ## 🪄 Mock APIs easily — no setup stress, just JSON and go
4
+
5
+ If you’re building or testing APIs, this tool makes mocking painless. You don’t need to write any config files — just use folders and JSON. It’s super fast, efficient, and flexible when you need it to be.
6
+
7
+ 🎈 No config needed to get started
8
+
9
+ 🥷 Fast to launch, light on memory, out of your way
10
+
11
+ 🧩 Moreover, advanced matching and custom scripting supported
12
+
13
+ It’s rebuilt from the ground up in version 4. Designed to help developers of all levels.
14
+
15
+ ![demo](docs/.assets/demo.gif)
16
+
3
17
  ```sh
18
+ # install
4
19
  npm install -D apimock-rs
20
+ # and go
21
+ npx apimock
22
+ ```
5
23
 
24
+ ```sh
25
+ # just use folders and JSON
26
+ mkdir -p api/v1/
27
+ echo '{"hello": "world"}' > api/v1/hello.json
6
28
  npx apimock
29
+
30
+ # response
31
+ curl http://localhost:3001/api/v1/hello
32
+ # --> {"hello":"world"}
7
33
  ```
34
+
35
+ ```sh
36
+ # also, there's room to tweak things later
37
+ npx apimock --init
38
+ ```
39
+
40
+ For more details, [see the docs](docs/README.md).
41
+
42
+ ## 🤝 Open-source, with care
43
+
44
+ This project is lovingly built and maintained by volunteers.
45
+ We hope it helps streamline your API development.
46
+ Please understand that the project has its own direction — while we welcome feedback, it might not fit every edge case 🌱
47
+
48
+ ## Acknowledgements
49
+
50
+ Depends on [tokio](https://github.com/tokio-rs/tokio) / [hyper](https://hyper.rs/) / [toml](https://github.com/toml-rs/toml) / [serde](https://serde.rs/) / [serde_json](https://github.com/serde-rs/json) / [json5](https://github.com/callum-oakley/json5-rs) / [console](https://github.com/console-rs/console) / [rhai](https://github.com/rhaiscript/rhai). In addition, [mdbook](https://github.com/rust-lang/mdBook) (as to workflows).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apimock-rs",
3
- "version": "4.0.0-rc.13",
3
+ "version": "4.0.0-rc.15",
4
4
  "description": "HTTP server generating REST/JSON responses. Aims to be mocking helper to develop microservices and APIs.",
5
5
  "author": "nabbisen<nabbisen@scqr.net>",
6
6
  "license": "Apache-2.0",
@@ -18,9 +18,9 @@
18
18
  "postinstall": "node postinstall.js"
19
19
  },
20
20
  "optionalDependencies": {
21
- "@apimock-rs/linux-x64-gnu": "4.0.0-rc.13",
22
- "@apimock-rs/darwin-arm64": "4.0.0-rc.13",
23
- "@apimock-rs/win32-x64-msvc": "4.0.0-rc.13"
21
+ "@apimock-rs/bin-linux-x64-gnu": "4.0.0-rc.15",
22
+ "@apimock-rs/bin-darwin-arm64": "4.0.0-rc.15",
23
+ "@apimock-rs/bin-win32-x64-msvc": "4.0.0-rc.15"
24
24
  },
25
25
  "keywords": [
26
26
  "api",