Skip to content

Commit 7a0ce0f

Browse files
committed
feat(docs): use echo.getkulala.net instead of httpbin.org
1 parent 183bf44 commit 7a0ce0f

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
@@ -963,7 +963,7 @@ Default:
963963
scratchpad_default_contents = {
964964
"@MY_TOKEN_NAME=my_token_value",
965965
"",
966-
"POST https://httpbin.org/post HTTP/1.1",
966+
"POST https://echo.getkulala.net/post HTTP/1.1",
967967
"accept: application/json",
968968
"content-type: application/json",
969969
"",
@@ -983,7 +983,7 @@ Example:
983983
scratchpad_default_contents = {
984984
"@AUTH_USERNAME=my_username",
985985
"",
986-
"POST https://httpbin.org/post HTTP/1.1",
986+
"POST https://echo.getkulala.net/post HTTP/1.1",
987987
"accept: application/json",
988988
"content-type: application/json",
989989
"",

docs/docs/scripts/lua-scripts.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Please see [Testing and reporting](../usage/testing-and-reporting.md) for more d
144144
145145
< ./pre-request.lua
146146
147-
POST https://httpbin.org/post HTTP/1.1
147+
POST https://echo.getkulala.net/post HTTP/1.1
148148
Accept: application/json
149149
Content-Type: application/json
150150
Authorization: Bearer Foo:bar
@@ -167,21 +167,21 @@ Authorization: Bearer Foo:bar
167167
###
168168
169169
### REQUEST_TWO
170-
POST https://httpbin.org/post HTTP/1.1
170+
POST https://echo.getkulala.net/post HTTP/1.1
171171
accept: application/json
172172
content-type: application/json
173173
174174
{
175-
"token": "{{REQUEST_ONE.response.body.$.json.token}}",
176-
"nested": "{{REQUEST_ONE.response.body.$.json.deep.nested[1].key}}",
175+
"token": "{{REQUEST_ONE.response.body.$.body.token}}",
176+
"nested": "{{REQUEST_ONE.response.body.$.body.deep.nested[1].key}}",
177177
"gorilla": "{{GORILLA}}"
178178
}
179179
```
180180

181181
## Post-request
182182

183183
```http
184-
POST https://httpbin.org/post HTTP/1.1
184+
POST https://echo.getkulala.net/post HTTP/1.1
185185
Accept: application/json
186186
Content-Type: application/json
187187
Authorization: Bearer {{TOKEN}}
@@ -202,15 +202,15 @@ Authorization: Bearer {{TOKEN}}
202202
client.log("Post-request script")
203203
204204
if response.response_code == 403 then
205-
request.url_raw = "https://httpbin.org/other_endpoint"
205+
request.url_raw = "https://echo.getkulala.net/other_endpoint"
206206
request.environment.TOKEN = "Bar"
207207
request.replay() -- replay the request
208208
end
209209
210-
client.global.BONOBO = response.json.deep.nested[1].key -- set global variable
210+
client.global.BONOBO = response.body.deep.nested[1].key -- set global variable
211211
212212
assert(response.response_code == 200, "Response failed")
213-
assert.json_has("deep.nested.key", { "foo" }, "Check if key is foo")
213+
assert.json_has("body.deep.nested.key", { "foo" }, "Check if key is foo")
214214
%}
215215
216216
> ./post-request.lua

docs/docs/scripts/overview.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ fs.writeFileSync("../http/my-file.txt", "Hello, world!");
119119
request.variables.set('PASSWORD', crypto.randomBytes(16).toString('hex'));
120120
%}
121121
< ./pre-request.js
122-
POST https://httpbin.org/post HTTP/1.1
122+
POST https://echo.getkulala.net/post HTTP/1.1
123123
Accept: application/json
124124
Content-Type: application/json
125125
Authorization: Bearer Foo:bar
@@ -142,13 +142,13 @@ Authorization: Bearer Foo:bar
142142
###
143143
144144
### REQUEST_TWO
145-
POST https://httpbin.org/post HTTP/1.1
145+
POST https://echo.getkulala.net/post HTTP/1.1
146146
accept: application/json
147147
content-type: application/json
148148
149149
{
150-
"token": "{{REQUEST_ONE.response.body.$.json.token}}",
151-
"nested": "{{REQUEST_ONE.response.body.$.json.deep.nested[1].key}}",
150+
"token": "{{REQUEST_ONE.response.body.$.body.token}}",
151+
"nested": "{{REQUEST_ONE.response.body.$.body.deep.nested[1].key}}",
152152
"gorilla": "{{GORILLA}}"
153153
}
154154
```
@@ -184,7 +184,7 @@ THIS_IS_SOME_TOKEN_VALUE_123
184184

185185
```http title="./post-request-example.http"
186186
### REQUEST_ONE_
187-
POST https://httpbin.org/post HTTP/1.1
187+
POST https://echo.getkulala.net/post HTTP/1.1
188188
Accept: application/json
189189
Content-Type: application/json
190190
Authorization: Bearer Foo:bar
@@ -202,14 +202,14 @@ Authorization: Bearer Foo:bar
202202
203203
> {%
204204
var fs = require('fs');
205-
fs.writeFileSync('TOKEN.txt', response.body.json.token);
206-
client.global.set('GORILLA_TOKEN', response.body.json.token);
205+
fs.writeFileSync('TOKEN.txt', response.body.body.token);
206+
client.global.set('GORILLA_TOKEN', response.body.body.token);
207207
%}
208208
209209
###
210210
211211
### REQUEST_TWO_2_
212-
POST https://httpbin.org/post HTTP/1.1
212+
POST https://echo.getkulala.net/post HTTP/1.1
213213
Accept: application/json
214214
Content-Type: application/json
215215
@@ -222,7 +222,7 @@ Content-Type: application/json
222222
###
223223
224224
### REQUEST_THREE
225-
POST https://httpbin.org/post HTTP/1.1
225+
POST https://echo.getkulala.net/post HTTP/1.1
226226
Accept: application/json
227227
Content-Type: application/json
228228
@@ -250,7 +250,7 @@ client.global.set("BONOBO", response.headers.valueOf("Date"));
250250
console.log(PASSWORD)
251251
%}
252252
< ./pre-request.js
253-
POST https://httpbin.org/post HTTP/1.1
253+
POST https://echo.getkulala.net/post HTTP/1.1
254254
Accept: application/json
255255
Content-Type: application/json
256256
Authorization: Bearer Foo:bar
@@ -271,7 +271,7 @@ Authorization: Bearer Foo:bar
271271
}
272272
273273
> {%
274-
var token = response.body.json.token
274+
var token = response.body.body.token
275275
var fs = require('fs');
276276
fs.writeFileSync('TOKEN.txt', token);
277277
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
@@ -225,7 +225,7 @@ request.replay();
225225
%}
226226
227227
@URL = "500"
228-
GET https://httpbin.org/status/{{URL}}
228+
GET https://echo.getkulala.net/status/{{URL}}
229229
230230
> {%
231231
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

@@ -52,8 +52,8 @@ In this example `jq` is used to extract the `ctx` string from a JWT token.
5252
# Setting the environment variables to be used in the next request.
5353
# Any external command can be used to set the environment variables.
5454
# The command should output the environment variable as string.
55-
# @env-stdin-cmd JWT_CONTEXT jq -r '.json.token | gsub("-";"+") | gsub("_";"/") | split(".") | .[1] | @base64d | fromjson | .ctx'
56-
POST https://httpbin.org/post HTTP/1.1
55+
# @env-stdin-cmd JWT_CONTEXT jq -r '.body.token | gsub("-";"+") | gsub("_";"/") | split(".") | .[1] | @base64d | fromjson | .ctx'
56+
POST https://echo.getkulala.net/post HTTP/1.1
5757
Content-Type: application/json
5858
Accept: application/json
5959
@@ -63,7 +63,7 @@ Accept: application/json
6363
6464
###
6565
66-
POST https://httpbin.org/post HTTP/1.1
66+
POST https://echo.getkulala.net/post HTTP/1.1
6767
Content-Type: application/json
6868
Accept: application/json
6969

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
@@ -28,18 +28,18 @@ delimiter `###`, otherwise the `URL` without the http version is used.
2828
```http get-requests.http
2929
### Request 1
3030
31-
GET https://httpbin.org/advanced_1 HTTP/1.1
31+
GET https://echo.getkulala.net/advanced_1 HTTP/1.1
3232
3333
###
3434
35-
POST https://httpbin.org/advanced_2 HTTP/1.1
35+
POST https://echo.getkulala.net/advanced_2 HTTP/1.1
3636
```
3737

3838
```http
3939
import ./requests/get-requests.http
4040
4141
run #Request 1
42-
run #POST https://httpbin.org/advanced_2
42+
run #POST https://echo.getkulala.net/advanced_2
4343
```
4444

4545
### 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)