You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ curl http://localhost:4000/commands/saythis?key=ddbe0a94&wait=true # wait=true so we don't need to poll
74
74
```
75
75
76
76
Returns result in JSON,
@@ -87,16 +87,23 @@ Returns result in JSON,
87
87
}
88
88
```
89
89
90
-
<divclass="admonition note">
91
-
<pclass="admonition-title">Note</p>
92
-
You can see the JSON schema for the POST request, <ahref="https://github.com/Eshaan7/Flask-Shell2HTTP/blob/master/post-request-schema.json"target="_blank">here</a>.
90
+
<divclass="admonition hint">
91
+
<pclass="admonition-title">Hint</p>
92
+
Use <code>wait=true</code> when you don't wish to hTTP poll and want the result in a single request only.
93
+
This is especially ideal in case you specified a low <code>timeout</code> value in the <code>POST</code> request.
93
94
</div>
94
95
96
+
95
97
<divclass="admonition hint">
96
98
<pclass="admonition-title">Hint</p>
97
99
By default, the <code>key</code> is the SHA1 sum of the <code>command + args</code> POSTed to the API. This is done as a rate limiting measure so as to prevent multiple jobs with same parameters, if one such job is already running. If <code>force_unique_key</code> is set to <code>true</code>, the API will bypass this default behaviour and a psuedorandom key will be returned instead.
98
100
</div>
99
101
102
+
<divclass="admonition note">
103
+
<pclass="admonition-title">Note</p>
104
+
You can see the full JSON schema for the POST request, <ahref="https://github.com/Eshaan7/Flask-Shell2HTTP/blob/master/post-request-schema.json"target="_blank">here</a>.
0 commit comments