Skip to content

Commit f6b7669

Browse files
committed
feat(docs): use echo.getkulala.net instead of httpbin.org
1 parent 4a56a4c commit f6b7669

26 files changed

+106
-117
lines changed

docs/docs/getting-started/configuration-options.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ Default:
794794
scratchpad_default_contents = {
795795
"@MY_TOKEN_NAME=my_token_value",
796796
"",
797-
"POST https://httpbin.org/post HTTP/1.1",
797+
"POST https://echo.getkulala.net/post HTTP/1.1",
798798
"accept: application/json",
799799
"content-type: application/json",
800800
"",
@@ -814,7 +814,7 @@ Example:
814814
scratchpad_default_contents = {
815815
"@AUTH_USERNAME=my_username",
816816
"",
817-
"POST https://httpbin.org/post HTTP/1.1",
817+
"POST https://echo.getkulala.net/post HTTP/1.1",
818818
"accept: application/json",
819819
"content-type: application/json",
820820
"",

docs/docs/scripts/lua-scripts.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Please see [Testing and reporting](../usage/testing-and-reporting.md) for more d
126126
127127
< ./pre-request.lua
128128
129-
POST https://httpbin.org/post HTTP/1.1
129+
POST https://echo.getkulala.net/post HTTP/1.1
130130
Accept: application/json
131131
Content-Type: application/json
132132
Authorization: Bearer Foo:bar
@@ -149,21 +149,21 @@ Authorization: Bearer Foo:bar
149149
###
150150
151151
### REQUEST_TWO
152-
POST https://httpbin.org/post HTTP/1.1
152+
POST https://echo.getkulala.net/post HTTP/1.1
153153
accept: application/json
154154
content-type: application/json
155155
156156
{
157-
"token": "{{REQUEST_ONE.response.body.$.json.token}}",
158-
"nested": "{{REQUEST_ONE.response.body.$.json.deep.nested[1].key}}",
157+
"token": "{{REQUEST_ONE.response.body.$.body.token}}",
158+
"nested": "{{REQUEST_ONE.response.body.$.body.deep.nested[1].key}}",
159159
"gorilla": "{{GORILLA}}"
160160
}
161161
```
162162

163163
## Post-request
164164

165165
```http
166-
POST https://httpbin.org/post HTTP/1.1
166+
POST https://echo.getkulala.net/post HTTP/1.1
167167
Accept: application/json
168168
Content-Type: application/json
169169
Authorization: Bearer {{TOKEN}}
@@ -184,15 +184,15 @@ Authorization: Bearer {{TOKEN}}
184184
client.log("Post-request script")
185185
186186
if response.response_code == 403 then
187-
request.url_raw = "https://httpbin.org/other_endpoint"
187+
request.url_raw = "https://echo.getkulala.net/other_endpoint"
188188
request.environment.TOKEN = "Bar"
189189
request.replay() -- replay the request
190190
end
191191
192-
client.global.BONOBO = response.json.deep.nested[1].key -- set global variable
192+
client.global.BONOBO = response.body.deep.nested[1].key -- set global variable
193193
194194
assert(response.response_code == 200, "Response failed")
195-
assert.json_has("deep.nested.key", { "foo" }, "Check if key is foo")
195+
assert.json_has("body.deep.nested.key", { "foo" }, "Check if key is foo")
196196
%}
197197
198198
> ./post-request.lua

docs/docs/scripts/overview.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fs.writeFileSync("../http/my-file.txt", "Hello, world!");
8383
request.variables.set('PASSWORD', crypto.randomBytes(16).toString('hex'));
8484
%}
8585
< ./pre-request.js
86-
POST https://httpbin.org/post HTTP/1.1
86+
POST https://echo.getkulala.net/post HTTP/1.1
8787
Accept: application/json
8888
Content-Type: application/json
8989
Authorization: Bearer Foo:bar
@@ -106,13 +106,13 @@ Authorization: Bearer Foo:bar
106106
###
107107
108108
### REQUEST_TWO
109-
POST https://httpbin.org/post HTTP/1.1
109+
POST https://echo.getkulala.net/post HTTP/1.1
110110
accept: application/json
111111
content-type: application/json
112112
113113
{
114-
"token": "{{REQUEST_ONE.response.body.$.json.token}}",
115-
"nested": "{{REQUEST_ONE.response.body.$.json.deep.nested[1].key}}",
114+
"token": "{{REQUEST_ONE.response.body.$.body.token}}",
115+
"nested": "{{REQUEST_ONE.response.body.$.body.deep.nested[1].key}}",
116116
"gorilla": "{{GORILLA}}"
117117
}
118118
```
@@ -148,7 +148,7 @@ THIS_IS_SOME_TOKEN_VALUE_123
148148

149149
```http title="./post-request-example.http"
150150
### REQUEST_ONE_
151-
POST https://httpbin.org/post HTTP/1.1
151+
POST https://echo.getkulala.net/post HTTP/1.1
152152
Accept: application/json
153153
Content-Type: application/json
154154
Authorization: Bearer Foo:bar
@@ -166,14 +166,14 @@ Authorization: Bearer Foo:bar
166166
167167
> {%
168168
var fs = require('fs');
169-
fs.writeFileSync('TOKEN.txt', response.body.json.token);
170-
client.global.set('GORILLA_TOKEN', response.body.json.token);
169+
fs.writeFileSync('TOKEN.txt', response.body.body.token);
170+
client.global.set('GORILLA_TOKEN', response.body.body.token);
171171
%}
172172
173173
###
174174
175175
### REQUEST_TWO_2_
176-
POST https://httpbin.org/post HTTP/1.1
176+
POST https://echo.getkulala.net/post HTTP/1.1
177177
Accept: application/json
178178
Content-Type: application/json
179179
@@ -186,7 +186,7 @@ Content-Type: application/json
186186
###
187187
188188
### REQUEST_THREE
189-
POST https://httpbin.org/post HTTP/1.1
189+
POST https://echo.getkulala.net/post HTTP/1.1
190190
Accept: application/json
191191
Content-Type: application/json
192192
@@ -214,7 +214,7 @@ client.global.set("BONOBO", response.headers.valueOf("Date"));
214214
console.log(PASSWORD)
215215
%}
216216
< ./pre-request.js
217-
POST https://httpbin.org/post HTTP/1.1
217+
POST https://echo.getkulala.net/post HTTP/1.1
218218
Accept: application/json
219219
Content-Type: application/json
220220
Authorization: Bearer Foo:bar
@@ -235,7 +235,7 @@ Authorization: Bearer Foo:bar
235235
}
236236
237237
> {%
238-
var token = response.body.json.token
238+
var token = response.body.body.token
239239
var fs = require('fs');
240240
fs.writeFileSync('TOKEN.txt', token);
241241
client.global.set('GORILLA_TOKEN', token);

docs/docs/scripts/request-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ request.replay();
217217
%}
218218
219219
@URL = "500"
220-
GET https://httpbin.org/status/{{URL}}
220+
GET https://echo.getkulala.net/status/{{URL}}
221221
222222
> {%
223223
console.log(response.responseCode)

docs/docs/usage/dotenv-and-http-client.env.json-support.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,19 @@ Press `<leader>Re` to open Environment Manager to select the environment and to
4141
{
4242
"$schema": "https://raw.githubusercontent.com/mistweaverco/kulala.nvim/main/schemas/http-client.env.schema.json",
4343
"dev": {
44-
"API_URL": "https://httpbin.org/post?env=dev",
44+
"API_URL": "https://echo.getkulala.net/post?env=dev",
4545
"API_KEY": ""
4646
},
4747
"testing": {
48-
"API_URL": "https://httpbin.org/post?env=testing",
48+
"API_URL": "https://echo.getkulala.net/post?env=testing",
4949
"API_KEY": ""
5050
},
5151
"staging": {
52-
"API_URL": "https://httpbin.org/post?env=staging",
52+
"API_URL": "https://echo.getkulala.net/post?env=staging",
5353
"API_KEY": ""
5454
},
5555
"prod": {
56-
"API_URL": "https://httpbin.org/post?env=prod",
56+
"API_URL": "https://echo.getkulala.net/post?env=prod",
5757
"API_KEY": ""
5858
}
5959
}
@@ -145,7 +145,7 @@ You can also define a special header `Host`, which will set the default host for
145145
},
146146
},
147147
"dev": {
148-
"API_URL": "https://httpbin.org/post?env=dev",
148+
"API_URL": "https://echo.getkulala.net/post?env=dev",
149149
"API_KEY": ""
150150
}
151151
}
@@ -155,7 +155,7 @@ Then, they're automatically added to the HTTP requests,
155155
unless you override them.
156156

157157
```http title="examples.http"
158-
POST https://httpbin.org/post HTTP/1.1
158+
POST https://echo.getkulala.net/post HTTP/1.1
159159
Authorization: Bearer {{API_KEY}}
160160
161161
{
@@ -171,7 +171,7 @@ define environment variables in it.
171171
The file should look like this:
172172

173173
```env title=".env"
174-
API_URL=https://httpbin.org/post
174+
API_URL=https://echo.getkulala.net/post
175175
API_KEY=your-api-key
176176
```
177177

docs/docs/usage/dynamically-setting-environment-variables-based-on-headers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ received in the first request.
1313

1414
```http title="simple.http"
1515
### REQUEST_ONE
16-
POST https://httpbin.org/post HTTP/1.1
16+
POST https://echo.getkulala.net/post HTTP/1.1
1717
Content-Type: application/json
1818
Accept: application/json
1919
@@ -23,7 +23,7 @@ Accept: application/json
2323
2424
###
2525
26-
POST https://httpbin.org/post HTTP/1.1
26+
POST https://echo.getkulala.net/post HTTP/1.1
2727
Content-Type: application/json
2828
Accept: application/json
2929

docs/docs/usage/dynamically-setting-environment-variables-based-on-response-json.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ the [request variables](request-variables) feature.
1313
```http title="with-builtin-parser.http"
1414
# Setting the environment variables to be used in the next request.
1515
### REQUEST_ONE
16-
POST https://httpbin.org/post HTTP/1.1
16+
POST https://echo.getkulala.net/post HTTP/1.1
1717
Content-Type: application/json
1818
Accept: application/json
1919
@@ -25,14 +25,14 @@ Accept: application/json
2525
2626
###
2727
28-
POST https://httpbin.org/post HTTP/1.1
28+
POST https://echo.getkulala.net/post HTTP/1.1
2929
Content-Type: application/json
3030
Accept: application/json
31-
Authorization: Bearer {{REQUEST_ONE.response.body.$.json.token}}
31+
Authorization: Bearer {{REQUEST_ONE.response.body.$.body.token}}
3232
3333
{
3434
"success": true,
35-
"username": "{{REQUEST_ONE.response.body.$.json.username}}"
35+
"username": "{{REQUEST_ONE.response.body.$.body.username}}"
3636
}
3737
```
3838

@@ -50,8 +50,8 @@ In this example `jq` is used to extract the `ctx` string from a JWT token.
5050
# Setting the environment variables to be used in the next request.
5151
# Any external command can be used to set the environment variables.
5252
# The command should output the environment variable as string.
53-
# @env-stdin-cmd JWT_CONTEXT jq -r '.json.token | gsub("-";"+") | gsub("_";"/") | split(".") | .[1] | @base64d | fromjson | .ctx'
54-
POST https://httpbin.org/post HTTP/1.1
53+
# @env-stdin-cmd JWT_CONTEXT jq -r '.body.token | gsub("-";"+") | gsub("_";"/") | split(".") | .[1] | @base64d | fromjson | .ctx'
54+
POST https://echo.getkulala.net/post HTTP/1.1
5555
Content-Type: application/json
5656
Accept: application/json
5757
@@ -61,7 +61,7 @@ Accept: application/json
6161
6262
###
6363
64-
POST https://httpbin.org/post HTTP/1.1
64+
POST https://echo.getkulala.net/post HTTP/1.1
6565
Content-Type: application/json
6666
Accept: application/json
6767

docs/docs/usage/filter-response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can use `# @jq` directive to filter the response JSON.
66

77
```http
88
# @jq { "username": .username, "password": .password }
9-
POST https://httpbin.org/post HTTP/1.1
9+
POST https://echo.getkulala.net/post HTTP/1.1
1010
Content-Type: application/json
1111
1212
{

docs/docs/usage/import-and-run-http.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ To autocomplete available requests, use the `Ctrl-X Ctrl-U` shortcut.
2525
```http get-requests.http
2626
### Request 1
2727
28-
GET https://httpbin.org/advanced_1 HTTP/1.1
28+
GET https://echo.getkulala.net/advanced_1 HTTP/1.1
2929
3030
###
3131
32-
POST https://httpbin.org/advanced_2 HTTP/1.1
32+
POST https://echo.getkulala.net/advanced_2 HTTP/1.1
3333
```
3434

3535
```http
3636
import ./requests/get-requests.http
3737
3838
run #Request 1
39-
run #POST https://httpbin.org/advanced_2
39+
run #POST https://echo.getkulala.net/advanced_2
4040
```
4141

4242
### Override variables from imported .http files

docs/docs/usage/magic-variables.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ To test this feature,
1717
create a file with the `.http` extension and write your HTTP requests in it.
1818

1919
```http title="magic-variables.http"
20-
POST https://httpbin.org/post HTTP/1.1
20+
POST https://echo.getkulala.net/post HTTP/1.1
2121
Content-Type: application/json
2222
Accept: application/json
2323

0 commit comments

Comments
 (0)