-
Notifications
You must be signed in to change notification settings - Fork 83
/
useful_api_calls.http
49 lines (45 loc) · 1.09 KB
/
useful_api_calls.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Check the gateway is up and running
http://localhost:8080/hello
###
# Get list of all the existing APIs
http://localhost:8080/tyk/apis
X-Tyk-Authorization: foo
###
# Create your first API in Tyk gateway
POST http://localhost:8080/tyk/apis/ HTTP/1.1
X-Tyk-Authorization: foo
Content-Type: application/json
{
"name": "Tyk Test Keyless API",
"api_id": "my-keyless-test",
"org_id": "default",
"definition": {
"location": "header",
"key": "version"
},
"use_keyless": true,
"version_data": {
"not_versioned": true,
"versions": {
"Default": {
"name": "Default"
}
}
},
"custom_middleware": {
"pre": [
{
"name": "testJSVMData",
"path": "./middleware/injectHeader.js",
"require_session": false,
"raw_body_only": false
}
]
},
"driver": "otto",
"proxy": {
"listen_path": "/my-keyless-test/",
"target_url": "http://httpbin.org",
"strip_listen_path": true
}
}