@jaredwray/mockhttp 2.1.0 → 3.0.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 +57 -67
- package/dist/index.d.mts +175 -159
- package/dist/index.mjs +513 -232
- package/package.json +24 -19
- package/site/dist/api/index.html +191 -5
- package/site/dist/api/swagger.json +235 -10
- package/site/dist/changelog/index.html +35 -33
- package/site/dist/changelog/page/2/index.html +33 -30
- package/site/dist/changelog/{v0-2-1 → v3-0-0}/index.html +73 -9
- package/site/dist/changelog/{v0-2-0 → v3-0-1}/index.html +83 -8
- package/site/dist/changelog-latest.json +26 -26
- package/site/dist/changelog.json +26 -26
- package/site/dist/docs/bins/index.html +97 -50
- package/site/dist/docs/configuration/index.html +2 -2
- package/site/dist/docs/hosted/index.html +3 -3
- package/site/dist/docs/how-to-deploy/cloudflare/index.html +8 -8
- package/site/dist/docs/how-to-deploy/docker/index.html +2 -2
- package/site/dist/docs/how-to-deploy/wasmer/index.html +4 -4
- package/site/dist/docs/https/index.html +2 -2
- package/site/dist/docs/index.html +2 -2
- package/site/dist/docs/library/index.html +19 -23
- package/site/dist/docs/taps/index.html +2 -2
- package/site/dist/feed.xml +1 -1
- package/site/dist/index.html +2 -2
- package/site/dist/llms-full.txt +511 -105
- package/site/dist/llms.txt +2 -2
- package/site/dist/search-index.json +1 -1
- package/site/dist/sitemap.xml +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaredwray/mockhttp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Mock Http - Easy way to mock http with httpbin replacement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.mts",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=22.
|
|
9
|
+
"node": ">=22.19.0"
|
|
10
10
|
},
|
|
11
11
|
"directories": {
|
|
12
12
|
"test": "test"
|
|
@@ -39,35 +39,40 @@
|
|
|
39
39
|
},
|
|
40
40
|
"homepage": "https://github.com/jaredwray/mockhttp#readme",
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@biomejs/biome": "^2.5.
|
|
43
|
-
"@swc/core": "^1.16.
|
|
42
|
+
"@biomejs/biome": "^2.5.15",
|
|
43
|
+
"@swc/core": "^1.16.18",
|
|
44
44
|
"@types/html-escaper": "^3.0.4",
|
|
45
|
-
"@vitest/coverage-v8": "^5.0.
|
|
46
|
-
"docula": "^3.0.
|
|
45
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
46
|
+
"docula": "^3.0.1",
|
|
47
47
|
"rimraf": "^6.1.3",
|
|
48
|
-
"tsdown": "^0.23.
|
|
49
|
-
"tsx": "^4.23.
|
|
48
|
+
"tsdown": "^0.23.1",
|
|
49
|
+
"tsx": "^4.23.15",
|
|
50
50
|
"typescript": "7.0.2",
|
|
51
|
-
"
|
|
51
|
+
"vite": "^8.3.4",
|
|
52
|
+
"vitest": "^5.0.3",
|
|
53
|
+
"wrangler": "4.127.0"
|
|
52
54
|
},
|
|
53
55
|
"dependencies": {
|
|
54
|
-
"@fastify/cookie": "^11.1.
|
|
55
|
-
"@fastify/helmet": "^13.1.
|
|
56
|
-
"@fastify/rate-limit": "^11.2.
|
|
57
|
-
"@fastify/static": "^10.1.
|
|
58
|
-
"@fastify/swagger": "^9.
|
|
56
|
+
"@fastify/cookie": "^11.1.3",
|
|
57
|
+
"@fastify/helmet": "^13.1.2",
|
|
58
|
+
"@fastify/rate-limit": "^11.2.1",
|
|
59
|
+
"@fastify/static": "^10.1.6",
|
|
60
|
+
"@fastify/swagger": "^9.9.2",
|
|
61
|
+
"@keyv/mongo": "^6.1.0",
|
|
59
62
|
"detect-port": "^2.1.0",
|
|
60
|
-
"fastify": "^5.12.
|
|
61
|
-
"hookified": "^3.0.
|
|
63
|
+
"fastify": "^5.12.5",
|
|
64
|
+
"hookified": "^3.0.4",
|
|
62
65
|
"html-escaper": "^3.0.3",
|
|
63
|
-
"
|
|
64
|
-
"
|
|
66
|
+
"keyv": "^6.1.0",
|
|
67
|
+
"mongodb": "7.7.0",
|
|
68
|
+
"pino": "^10.4.0",
|
|
69
|
+
"pino-pretty": "^13.2.0"
|
|
65
70
|
},
|
|
66
71
|
"files": [
|
|
67
72
|
"dist",
|
|
68
73
|
"public",
|
|
69
74
|
"site/dist",
|
|
70
|
-
"
|
|
75
|
+
"LICENSE"
|
|
71
76
|
],
|
|
72
77
|
"scripts": {
|
|
73
78
|
"lint": "biome check --write --error-on-warnings",
|
package/site/dist/api/index.html
CHANGED
|
@@ -155,6 +155,18 @@
|
|
|
155
155
|
<input type="text" class="api-search" id="api-search" placeholder="Search endpoints..." />
|
|
156
156
|
|
|
157
157
|
<div class="api-sidebar__spec-heading">API Reference</div>
|
|
158
|
+
<div class="api-sidebar__group" data-group="health">
|
|
159
|
+
<button class="api-sidebar__group-toggle">
|
|
160
|
+
<span>Health</span>
|
|
161
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
|
|
162
|
+
</button>
|
|
163
|
+
<div class="api-sidebar__group-items">
|
|
164
|
+
<a href="#get-healthz" class="api-sidebar__item" data-method="get" data-path="/healthz">
|
|
165
|
+
<span class="api-sidebar__item-path">/healthz</span>
|
|
166
|
+
<span class="method-badge method-badge--get">GET</span>
|
|
167
|
+
</a>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
158
170
|
<div class="api-sidebar__group" data-group="http-methods">
|
|
159
171
|
<button class="api-sidebar__group-toggle">
|
|
160
172
|
<span>HTTP Methods</span>
|
|
@@ -732,7 +744,7 @@
|
|
|
732
744
|
<main class="api-content">
|
|
733
745
|
<section class="api-info">
|
|
734
746
|
<h1 class="api-info__title">Mock HTTP API</h1>
|
|
735
|
-
<span class="api-info__version">
|
|
747
|
+
<span class="api-info__version">v3.0.1</span>
|
|
736
748
|
<div class="api-info__description"><p>A simple HTTP server that can be used to mock HTTP responses for testing purposes. Inspired by <a href="https://httpbin.org/">httpbin</a> and built using <code>nodejs</code> and <code>fastify</code> with the idea of running it via <a href="https://mockhttp.org">https://mockhttp.org</a>, via docker <code>jaredwray/mockhttp</code>, or nodejs <code>npm install @jaredwray/mockhttp</code>.</p>
|
|
737
749
|
<ul>
|
|
738
750
|
<li><a href="https://github.com/jaredwray/mockhttp">GitHub Repository</a></li>
|
|
@@ -747,6 +759,180 @@
|
|
|
747
759
|
</div>
|
|
748
760
|
</section>
|
|
749
761
|
|
|
762
|
+
<div class="api-group" id="group-health">
|
|
763
|
+
<div class="api-group__header">
|
|
764
|
+
<h2 class="api-group__title">Health</h2>
|
|
765
|
+
</div>
|
|
766
|
+
|
|
767
|
+
<div class="api-operation api-operation--collapsed" id="get-healthz">
|
|
768
|
+
<div class="api-operation__header" data-toggle="operation">
|
|
769
|
+
<span class="method-badge method-badge--get">GET</span>
|
|
770
|
+
<span class="api-operation__path">/healthz</span>
|
|
771
|
+
<svg class="api-operation__toggle-icon" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
|
|
772
|
+
</div>
|
|
773
|
+
<div class="api-operation__body">
|
|
774
|
+
<div class="api-operation__docs">
|
|
775
|
+
<div class="api-operation__description"><p>Report whether bin storage is reachable. MongoDB failures include the driver error. The scheme, the host, the username, the password, the password length, and the full URI are never returned.</p></div>
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
<div class="api-section-title">Responses</div>
|
|
780
|
+
<div class="api-response">
|
|
781
|
+
<div class="api-response__status">
|
|
782
|
+
<span class="api-status-code api-status-code--2xx">200</span>
|
|
783
|
+
<span class="api-response__desc">Default Response</span>
|
|
784
|
+
</div>
|
|
785
|
+
<div class="api-schema">
|
|
786
|
+
<div class="api-schema-props">
|
|
787
|
+
<div class="api-schema-prop">
|
|
788
|
+
<span class="api-schema-prop-name">status</span>
|
|
789
|
+
<span class="api-schema-prop-type">string</span>
|
|
790
|
+
<span class="api-schema-prop-desc"></span>
|
|
791
|
+
</div>
|
|
792
|
+
<div class="api-schema-prop">
|
|
793
|
+
<span class="api-schema-prop-name">bins</span>
|
|
794
|
+
<span class="api-schema-prop-type">object</span>
|
|
795
|
+
<span class="api-schema-prop-desc"></span>
|
|
796
|
+
</div>
|
|
797
|
+
</div>
|
|
798
|
+
</div>
|
|
799
|
+
<div class="api-response__example">
|
|
800
|
+
<pre><code>{
|
|
801
|
+
"status": "ok",
|
|
802
|
+
"bins": {
|
|
803
|
+
"store": "mongo",
|
|
804
|
+
"connected": true,
|
|
805
|
+
"latencyMs": 0,
|
|
806
|
+
"uriPresent": true,
|
|
807
|
+
"uri": {
|
|
808
|
+
"length": 0,
|
|
809
|
+
"leadingWhitespace": true,
|
|
810
|
+
"trailingWhitespace": true,
|
|
811
|
+
"newline": true,
|
|
812
|
+
"wrappedQuotes": true,
|
|
813
|
+
"atCount": 0,
|
|
814
|
+
"passwordReserved": [
|
|
815
|
+
"string"
|
|
816
|
+
],
|
|
817
|
+
"passwordHasPercent": true
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
}</code></pre>
|
|
821
|
+
</div>
|
|
822
|
+
</div>
|
|
823
|
+
<div class="api-response">
|
|
824
|
+
<div class="api-response__status">
|
|
825
|
+
<span class="api-status-code api-status-code--5xx">503</span>
|
|
826
|
+
<span class="api-response__desc">Default Response</span>
|
|
827
|
+
</div>
|
|
828
|
+
<div class="api-schema">
|
|
829
|
+
<div class="api-schema-props">
|
|
830
|
+
<div class="api-schema-prop">
|
|
831
|
+
<span class="api-schema-prop-name">status</span>
|
|
832
|
+
<span class="api-schema-prop-type">string</span>
|
|
833
|
+
<span class="api-schema-prop-desc"></span>
|
|
834
|
+
</div>
|
|
835
|
+
<div class="api-schema-prop">
|
|
836
|
+
<span class="api-schema-prop-name">bins</span>
|
|
837
|
+
<span class="api-schema-prop-type">object</span>
|
|
838
|
+
<span class="api-schema-prop-desc"></span>
|
|
839
|
+
</div>
|
|
840
|
+
</div>
|
|
841
|
+
</div>
|
|
842
|
+
<div class="api-response__example">
|
|
843
|
+
<pre><code>{
|
|
844
|
+
"status": "error",
|
|
845
|
+
"bins": {
|
|
846
|
+
"store": "mongo",
|
|
847
|
+
"connected": true,
|
|
848
|
+
"latencyMs": 0,
|
|
849
|
+
"uriPresent": true,
|
|
850
|
+
"uri": {
|
|
851
|
+
"length": 0,
|
|
852
|
+
"leadingWhitespace": true,
|
|
853
|
+
"trailingWhitespace": true,
|
|
854
|
+
"newline": true,
|
|
855
|
+
"wrappedQuotes": true,
|
|
856
|
+
"atCount": 0,
|
|
857
|
+
"passwordReserved": [
|
|
858
|
+
"string"
|
|
859
|
+
],
|
|
860
|
+
"passwordHasPercent": true
|
|
861
|
+
},
|
|
862
|
+
"error": {
|
|
863
|
+
"name": "string",
|
|
864
|
+
"message": "string",
|
|
865
|
+
"code": null
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}</code></pre>
|
|
869
|
+
</div>
|
|
870
|
+
</div>
|
|
871
|
+
|
|
872
|
+
<div class="api-code-examples">
|
|
873
|
+
<div class="api-code-tabs">
|
|
874
|
+
<button class="api-code-tab api-code-tab--active" data-tab="curl">cURL</button>
|
|
875
|
+
<button class="api-code-tab" data-tab="javascript">JavaScript</button>
|
|
876
|
+
<button class="api-code-tab" data-tab="python">Python</button>
|
|
877
|
+
</div>
|
|
878
|
+
<div class="api-code-panel api-code-panel--active" data-panel="curl">
|
|
879
|
+
<button class="api-copy-btn" data-copy>Copy</button>
|
|
880
|
+
<pre><code>curl -X GET "/healthz"</code></pre>
|
|
881
|
+
</div>
|
|
882
|
+
<div class="api-code-panel" data-panel="javascript">
|
|
883
|
+
<button class="api-copy-btn" data-copy>Copy</button>
|
|
884
|
+
<pre><code>const response = await fetch('/healthz', {
|
|
885
|
+
method: 'GET'
|
|
886
|
+
});
|
|
887
|
+
const data = await response.json();</code></pre>
|
|
888
|
+
</div>
|
|
889
|
+
<div class="api-code-panel" data-panel="python">
|
|
890
|
+
<button class="api-copy-btn" data-copy>Copy</button>
|
|
891
|
+
<pre><code>import requests
|
|
892
|
+
|
|
893
|
+
response = requests.get('/healthz')
|
|
894
|
+
data = response.json()</code></pre>
|
|
895
|
+
</div>
|
|
896
|
+
</div>
|
|
897
|
+
</div>
|
|
898
|
+
|
|
899
|
+
<div class="api-try-it" data-method="GET" data-path="/healthz">
|
|
900
|
+
<span class="api-try-it__title">Test Request</span>
|
|
901
|
+
|
|
902
|
+
<div class="api-try-it__url-bar">
|
|
903
|
+
<span class="method-badge method-badge--get">GET</span>
|
|
904
|
+
<div class="api-try-it__url-display">
|
|
905
|
+
<select class="api-try-it__server-select" data-try-server>
|
|
906
|
+
<option value=""></option>
|
|
907
|
+
</select>
|
|
908
|
+
<span class="api-try-it__path-display">/healthz</span>
|
|
909
|
+
</div>
|
|
910
|
+
</div>
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
<button class="api-try-it__send-btn" data-try-send>Send Request</button>
|
|
915
|
+
|
|
916
|
+
<div class="api-try-it__response api-try-it__response--hidden" data-try-response>
|
|
917
|
+
<div class="api-try-it__response-meta">
|
|
918
|
+
<span class="api-try-it__response-status" data-try-status></span>
|
|
919
|
+
<span class="api-try-it__response-time" data-try-time></span>
|
|
920
|
+
</div>
|
|
921
|
+
<div class="api-try-it__response-tabs">
|
|
922
|
+
<button class="api-try-it__rtab api-try-it__rtab--active" data-try-rtab="body">Body</button>
|
|
923
|
+
<button class="api-try-it__rtab" data-try-rtab="headers">Headers</button>
|
|
924
|
+
</div>
|
|
925
|
+
<div class="api-try-it__rpanel api-try-it__rpanel--active" data-try-rpanel="body">
|
|
926
|
+
<pre><code data-try-response-body></code></pre>
|
|
927
|
+
</div>
|
|
928
|
+
<div class="api-try-it__rpanel" data-try-rpanel="headers">
|
|
929
|
+
<pre><code data-try-response-headers></code></pre>
|
|
930
|
+
</div>
|
|
931
|
+
</div>
|
|
932
|
+
</div>
|
|
933
|
+
</div>
|
|
934
|
+
</div>
|
|
935
|
+
</div>
|
|
750
936
|
<div class="api-group" id="group-http-methods">
|
|
751
937
|
<div class="api-group__header">
|
|
752
938
|
<h2 class="api-group__title">HTTP Methods</h2>
|
|
@@ -15066,7 +15252,7 @@ data = response.json()</code></pre>
|
|
|
15066
15252
|
"remoteAddress": "string",
|
|
15067
15253
|
"contentType": "string",
|
|
15068
15254
|
"bodySize": 0,
|
|
15069
|
-
"body":
|
|
15255
|
+
"body": "string",
|
|
15070
15256
|
"bodyEncoding": "utf8",
|
|
15071
15257
|
"truncated": true,
|
|
15072
15258
|
"capturedAt": "string"
|
|
@@ -15409,7 +15595,7 @@ data = response.json()</code></pre>
|
|
|
15409
15595
|
</div>
|
|
15410
15596
|
<div class="api-schema-prop">
|
|
15411
15597
|
<span class="api-schema-prop-name">body</span>
|
|
15412
|
-
<span class="api-schema-prop-type">
|
|
15598
|
+
<span class="api-schema-prop-type">string</span>
|
|
15413
15599
|
<span class="api-schema-prop-desc"></span>
|
|
15414
15600
|
</div>
|
|
15415
15601
|
<div class="api-schema-prop">
|
|
@@ -15445,7 +15631,7 @@ data = response.json()</code></pre>
|
|
|
15445
15631
|
"remoteAddress": "string",
|
|
15446
15632
|
"contentType": "string",
|
|
15447
15633
|
"bodySize": 0,
|
|
15448
|
-
"body":
|
|
15634
|
+
"body": "string",
|
|
15449
15635
|
"bodyEncoding": "utf8",
|
|
15450
15636
|
"truncated": true,
|
|
15451
15637
|
"capturedAt": "string"
|
|
@@ -17716,7 +17902,7 @@ data = response.json()</code></pre>
|
|
|
17716
17902
|
<a href="https://docula.org/" target="_blank" rel="noopener noreferrer" class="footer__link" aria-label="Docula">
|
|
17717
17903
|
<svg class="footer__bat" xmlns="http://www.w3.org/2000/svg" viewBox="70 110 360 205" fill="currentColor"><path d="M420,173c-16.76-18-72.78-36.65-131.59-30.58A160.15,160.15,0,0,0,269,120.55c-3.78,4.52-11.15,9.45-19,9.45s-15.23-4.93-19-9.45a160.15,160.15,0,0,0-19.4,21.83C152.78,136.31,96.76,154.94,80,173c48.86,5.86,79.5,34.09,79.5,72.06,52.37,0,77,28,90.5,59.94C263.54,273,288.13,245,340.5,245,340.5,207,371.14,178.8,420,173Z"/><circle cx="239.19" cy="145.36" r="3.32" fill="#fff"/><circle cx="260.81" cy="145.36" r="3.32" fill="#fff"/></svg>
|
|
17718
17904
|
</a>
|
|
17719
|
-
<span class="footer__updated">updated: 2026-10-
|
|
17905
|
+
<span class="footer__updated">updated: 2026-10-28</span>
|
|
17720
17906
|
</footer>
|
|
17721
17907
|
<script src="/css/highlight/highlight.min.js"></script>
|
|
17722
17908
|
<script>
|
|
@@ -3,12 +3,237 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Mock HTTP API",
|
|
5
5
|
"description": "\nA 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`.\n\n* [GitHub Repository](https://github.com/jaredwray/mockhttp)\n* [Docker Image](https://hub.docker.com/r/jaredwray/mockhttp)\n* [NPM Package](https://www.npmjs.com/package/@jaredwray/mockhttp)\n\n# About mockhttp.org\n\n[mockhttp.org](https://mockhttp.org) is a free hosted instance of this codebase for testing. It runs on a Cloudflare Worker (no containers): documentation is served from Workers Assets, and mock APIs such as `/get` and `/post` run in the Worker. The service is globally available and rate-limited (1000 requests per minute per IP) to prevent abuse.\n",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "3.0.1"
|
|
7
7
|
},
|
|
8
8
|
"components": {
|
|
9
9
|
"schemas": {}
|
|
10
10
|
},
|
|
11
11
|
"paths": {
|
|
12
|
+
"/healthz": {
|
|
13
|
+
"get": {
|
|
14
|
+
"tags": [
|
|
15
|
+
"Health"
|
|
16
|
+
],
|
|
17
|
+
"description": "Report whether bin storage is reachable. MongoDB failures include the driver error. The scheme, the host, the username, the password, the password length, and the full URI are never returned.",
|
|
18
|
+
"responses": {
|
|
19
|
+
"200": {
|
|
20
|
+
"description": "Default Response",
|
|
21
|
+
"content": {
|
|
22
|
+
"application/json": {
|
|
23
|
+
"schema": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"properties": {
|
|
26
|
+
"status": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"ok"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"bins": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"store": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"enum": [
|
|
38
|
+
"mongo",
|
|
39
|
+
"memory"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"connected": {
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
},
|
|
45
|
+
"latencyMs": {
|
|
46
|
+
"type": "integer"
|
|
47
|
+
},
|
|
48
|
+
"uriPresent": {
|
|
49
|
+
"type": "boolean"
|
|
50
|
+
},
|
|
51
|
+
"uri": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"length": {
|
|
55
|
+
"type": "integer"
|
|
56
|
+
},
|
|
57
|
+
"leadingWhitespace": {
|
|
58
|
+
"type": "boolean"
|
|
59
|
+
},
|
|
60
|
+
"trailingWhitespace": {
|
|
61
|
+
"type": "boolean"
|
|
62
|
+
},
|
|
63
|
+
"newline": {
|
|
64
|
+
"type": "boolean"
|
|
65
|
+
},
|
|
66
|
+
"wrappedQuotes": {
|
|
67
|
+
"type": "boolean"
|
|
68
|
+
},
|
|
69
|
+
"atCount": {
|
|
70
|
+
"type": "integer"
|
|
71
|
+
},
|
|
72
|
+
"passwordReserved": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"items": {
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"passwordHasPercent": {
|
|
79
|
+
"type": "boolean"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"length",
|
|
84
|
+
"leadingWhitespace",
|
|
85
|
+
"trailingWhitespace",
|
|
86
|
+
"newline",
|
|
87
|
+
"wrappedQuotes",
|
|
88
|
+
"atCount",
|
|
89
|
+
"passwordReserved",
|
|
90
|
+
"passwordHasPercent"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": [
|
|
95
|
+
"store",
|
|
96
|
+
"connected",
|
|
97
|
+
"latencyMs",
|
|
98
|
+
"uriPresent"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"required": [
|
|
103
|
+
"status",
|
|
104
|
+
"bins"
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"503": {
|
|
111
|
+
"description": "Default Response",
|
|
112
|
+
"content": {
|
|
113
|
+
"application/json": {
|
|
114
|
+
"schema": {
|
|
115
|
+
"type": "object",
|
|
116
|
+
"properties": {
|
|
117
|
+
"status": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"enum": [
|
|
120
|
+
"error"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"bins": {
|
|
124
|
+
"type": "object",
|
|
125
|
+
"properties": {
|
|
126
|
+
"store": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"enum": [
|
|
129
|
+
"mongo",
|
|
130
|
+
"memory"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"connected": {
|
|
134
|
+
"type": "boolean"
|
|
135
|
+
},
|
|
136
|
+
"latencyMs": {
|
|
137
|
+
"type": "integer"
|
|
138
|
+
},
|
|
139
|
+
"uriPresent": {
|
|
140
|
+
"type": "boolean"
|
|
141
|
+
},
|
|
142
|
+
"uri": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"length": {
|
|
146
|
+
"type": "integer"
|
|
147
|
+
},
|
|
148
|
+
"leadingWhitespace": {
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
"trailingWhitespace": {
|
|
152
|
+
"type": "boolean"
|
|
153
|
+
},
|
|
154
|
+
"newline": {
|
|
155
|
+
"type": "boolean"
|
|
156
|
+
},
|
|
157
|
+
"wrappedQuotes": {
|
|
158
|
+
"type": "boolean"
|
|
159
|
+
},
|
|
160
|
+
"atCount": {
|
|
161
|
+
"type": "integer"
|
|
162
|
+
},
|
|
163
|
+
"passwordReserved": {
|
|
164
|
+
"type": "array",
|
|
165
|
+
"items": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"passwordHasPercent": {
|
|
170
|
+
"type": "boolean"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"required": [
|
|
174
|
+
"length",
|
|
175
|
+
"leadingWhitespace",
|
|
176
|
+
"trailingWhitespace",
|
|
177
|
+
"newline",
|
|
178
|
+
"wrappedQuotes",
|
|
179
|
+
"atCount",
|
|
180
|
+
"passwordReserved",
|
|
181
|
+
"passwordHasPercent"
|
|
182
|
+
]
|
|
183
|
+
},
|
|
184
|
+
"error": {
|
|
185
|
+
"type": "object",
|
|
186
|
+
"properties": {
|
|
187
|
+
"name": {
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
"message": {
|
|
191
|
+
"type": "string"
|
|
192
|
+
},
|
|
193
|
+
"code": {
|
|
194
|
+
"anyOf": [
|
|
195
|
+
{
|
|
196
|
+
"type": "string"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "number"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"type": "object",
|
|
203
|
+
"nullable": true,
|
|
204
|
+
"enum": [
|
|
205
|
+
null
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"required": [
|
|
212
|
+
"name",
|
|
213
|
+
"message",
|
|
214
|
+
"code"
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"required": [
|
|
219
|
+
"store",
|
|
220
|
+
"connected",
|
|
221
|
+
"uriPresent",
|
|
222
|
+
"error"
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"status",
|
|
228
|
+
"bins"
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
12
237
|
"/get": {
|
|
13
238
|
"get": {
|
|
14
239
|
"tags": [
|
|
@@ -137,7 +362,11 @@
|
|
|
137
362
|
"type": "string"
|
|
138
363
|
},
|
|
139
364
|
{
|
|
140
|
-
"type": "
|
|
365
|
+
"type": "object",
|
|
366
|
+
"nullable": true,
|
|
367
|
+
"enum": [
|
|
368
|
+
null
|
|
369
|
+
]
|
|
141
370
|
}
|
|
142
371
|
]
|
|
143
372
|
}
|
|
@@ -4379,10 +4608,8 @@
|
|
|
4379
4608
|
"type": "integer"
|
|
4380
4609
|
},
|
|
4381
4610
|
"body": {
|
|
4382
|
-
"type":
|
|
4383
|
-
|
|
4384
|
-
"string"
|
|
4385
|
-
]
|
|
4611
|
+
"type": "string",
|
|
4612
|
+
"nullable": true
|
|
4386
4613
|
},
|
|
4387
4614
|
"bodyEncoding": {
|
|
4388
4615
|
"type": "string",
|
|
@@ -4549,10 +4776,8 @@
|
|
|
4549
4776
|
"type": "integer"
|
|
4550
4777
|
},
|
|
4551
4778
|
"body": {
|
|
4552
|
-
"type":
|
|
4553
|
-
|
|
4554
|
-
"string"
|
|
4555
|
-
]
|
|
4779
|
+
"type": "string",
|
|
4780
|
+
"nullable": true
|
|
4556
4781
|
},
|
|
4557
4782
|
"bodyEncoding": {
|
|
4558
4783
|
"type": "string",
|