Skip to content

Commit

Permalink
feat: replace httpbin.org with mocktarget.apigee.net
Browse files Browse the repository at this point in the history
  • Loading branch information
danistrebel committed Aug 7, 2023
1 parent c861299 commit 58a8185
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
<Flows/>
<HTTPTargetConnection>
<Properties/>
<URL>http://httpbin.org/get</URL>
<URL>https://mocktarget.apigee.net/echo</URL>
</HTTPTargetConnection>
</TargetEndpoint>
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ function onComplete(response,error) {
}

// Make an additional request
httpClient.get("https://httpbin.org/get?name=Mediated Display Name", onComplete);
httpClient.get("https://mocktarget.apigee.net/echo?name=Mediated Display Name", onComplete);
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

<TargetEndpoint name="default">
<HTTPTargetConnection>
<URL>https://httpbin.org/</URL>
<URL>https://mocktarget.apigee.net/echo</URL>
</HTTPTargetConnection>
</TargetEndpoint>
2 changes: 1 addition & 1 deletion references/js-callout/apiproxy/targets/default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

<TargetEndpoint name="default">
<HTTPTargetConnection>
<URL>https://httpbin.org/</URL>
<URL>https://mocktarget.apigee.net/echo/</URL>
</HTTPTargetConnection>
</TargetEndpoint>
2 changes: 1 addition & 1 deletion references/proxy-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ It also has the following features:
port, ssl enabled or not) are based on the environment variable `TARGET_URL`
- The path that is set in `TARGET_URL` is used to configure a conditional flow
on the proxy template. This flow is used to test the TargetServer
- The default value of `TARGET_URL` is `https://httpbin.org/headers`
- The default value of `TARGET_URL` is `https://mocktarget.apigee.net/echo`

## Dependencies

Expand Down
2 changes: 1 addition & 1 deletion references/proxy-template/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ PROXY=example
VERSION=v1

# default target server URL
DEFAULT_TARGET_URL=https://httpbin.org/headers
DEFAULT_TARGET_URL=https://mocktarget.apigee.net/echo

# default Virtual Host
VHOST=secure
Expand Down
2 changes: 1 addition & 1 deletion references/recaptcha-enterprise/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ following artifacts:

- ```recaptcha-data-proxy-v1```: a data proxy, which calls the reCAPTCHA
enterprise sharedflow.
The target endpoint of this proxy is [httpbin.org](https://httpbin.org)
The target endpoint of this proxy is [mocktarget.apigee.net/echo](https://mocktarget.apigee.net/echo)
- ```recaptcha-deliver-token-v1```: an API proxy used to deliver an HTML page that
includes a valid reCAPTCHA
token (cf. [Option 2](#option-2-recaptcha-enterprise-is-used)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
<Flows/>
<PostFlow name="PostFlow"/>
<HTTPTargetConnection>
<URL>https://httpbin.org</URL>
<URL>https://mocktarget.apigee.net/echo</URL>
</HTTPTargetConnection>
</TargetEndpoint>
2 changes: 1 addition & 1 deletion tools/endpoints-oas-importer/examples/openapi_test.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
},
"x-google-backend": {
"address": "https://httpbin.org",
"address": "https://mocktarget.apigee.net/echo",
"deadline": 7,
"disable_auth": true,
"path_translation": "APPEND_PATH_TO_ADDRESS",
Expand Down
4 changes: 2 additions & 2 deletions tools/endpoints-oas-importer/examples/openapi_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ schemes:
- "https"
x-google-allow: all
x-google-backend:
address: https://httpbin.org/anything
address: https://mocktarget.apigee.net/echo
protocol: h2
disable_auth: true
paths:
Expand All @@ -35,7 +35,7 @@ paths:
'200':
description: Request Headers.
x-google-backend:
address: https://httpbin.org
address: https://mocktarget.apigee.net/echo
path_translation: APPEND_PATH_TO_ADDRESS
disable_auth: true
"/headers/{headerId}/bar":
Expand Down

0 comments on commit 58a8185

Please sign in to comment.