Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Added new mock endpoint sample #533

Merged
merged 2 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions config/samples/httpbin_mock.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: tyk.tyk.io/v1alpha1
kind: ApiDefinition
metadata:
name: httpbin
spec:
name: httpbin
protocol: http
active: true
use_keyless: true
proxy:
target_url: http://httpbin.org
listen_path: /httpbin
strip_listen_path: true
version_data:
default_version: Default
not_versioned: true
versions:
Default:
name: Default
use_extended_paths: true
paths:
black_list: []
ignored: []
white_list: []
extended_paths:
ignored:
- ignore_case: false
method_actions:
GET:
action: "reply"
code: 200
data: "{\"foo\": \"bar\"}"
headers: {}
path: /foo
2 changes: 1 addition & 1 deletion docs/api_definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ To check the supported features of the API Definitions CRD version you're curren
| Security - Ignore list | ✅ | v0.8.2 | - | [Sample](./../config/samples/httpbin_ignored.yaml) |
| Transform - Internal | ⚠️ | v0.1 | Untested | |
| Transform - Method | ✅ | v0.5 | - | [Sample](../bdd/custom_resources/transform/method.yaml) |
| Transform - Mock | ⚠️ | v0.1 | Untested | |
| Transform - Mock | | v0.12 | - | [Sample](../config/samples/httpbin_mock.yaml)|
| Transform - Request Body | ✅ | v0.1 | - | [Sample](../config/samples/httpbin_transform.yaml) |
| Transform - Response Body | ✅ | v0.1 | - | [Sample](../config/samples/httpbin_transform.yaml) |
| Transform - Request Body JQ | ⚠️ | v0.1 | Untested - Requires JQ on Gateway Docker Image | |
Expand Down