@jaredwray/mockhttp 0.0.1 → 0.2.0
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 +5 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1078 -32
- package/package.json +25 -13
- package/dist/fastify-config.js +0 -12
- package/dist/routes/delete-route.js +0 -27
- package/dist/routes/get-route.js +0 -34
- package/dist/routes/http-methods/delete.js +0 -28
- package/dist/routes/http-methods/get.js +0 -35
- package/dist/routes/http-methods/index.js +0 -5
- package/dist/routes/http-methods/patch.js +0 -28
- package/dist/routes/http-methods/post.js +0 -28
- package/dist/routes/http-methods/put.js +0 -28
- package/dist/routes/index-route.js +0 -67
- package/dist/routes/ip-route.js +0 -25
- package/dist/routes/post-route.js +0 -27
- package/dist/routes/put-route.js +0 -27
- package/dist/routes/request-inspection/headers.js +0 -26
- package/dist/routes/request-inspection/index.js +0 -3
- package/dist/routes/request-inspection/ip.js +0 -26
- package/dist/routes/request-inspection/user-agent.js +0 -25
- package/dist/routes/status-codes/get.js +0 -29
- package/dist/routes/status-codes/index.js +0 -102
- package/dist/routes/status-route.js +0 -28
- package/dist/swagger.js +0 -34
package/README.md
CHANGED
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
[](https://github.com/jaredwray/mockhttp/actions/workflows/tests.yaml)
|
|
4
4
|
[](https://github.com/jaredwray/mockhttp/blob/master/LICENSE)
|
|
5
5
|
[](https://codecov.io/gh/jaredwray/mockhttp)
|
|
6
|
-
[](https://npmjs.com/package/mockhttp)
|
|
7
|
-
[](https://npmjs.com/package/mockhttp)
|
|
6
|
+
[](https://npmjs.com/package/@jaredwray/mockhttp)
|
|
7
|
+
[](https://npmjs.com/package/@jaredwray/mockhttp)
|
|
8
|
+
[](https://hub.docker.com/r/jaredwray/mockhttp)
|
|
9
|
+
|
|
8
10
|
|
|
9
11
|
A simple HTTP server that can be used to mock HTTP responses for testing purposes. Inspired by [httpbin](https://httpbin.org/) and built using `nodejs` and `fastify` with the idea of running it via https://mockhttp.org, via docker `jaredwray/mockhttp`, or nodejs `npm install jaredwray/mockhttp`.
|
|
10
12
|
|
|
11
13
|
# Deploy via Docker
|
|
12
14
|
```bash
|
|
13
|
-
docker run -d -p
|
|
15
|
+
docker run -d -p 3000:3000 jaredwray/mockhttp
|
|
14
16
|
```
|
|
15
17
|
|
|
16
18
|
# Deploy via NodeJS
|
package/dist/index.d.ts
ADDED