Hi,
I was tyk-gateway without dashboard on centos. After all setup, I am hitting an issue on creating api. Basically api creation seems to fail. I get following response for api creation with key field being empty
{
“action”: “added”,
“key”: “”,
“status”: “ok”
}
Following is the snippet for debug log
time=“Dec 19 18:21:24” level=debug msg=POST
time=“Dec 19 18:21:24” level=debug msg=“Creating new definition file”
time=“Dec 19 18:21:24” level=warning msg=“API Definition with this ID already exists, deleting file…”
Following is the add-api post that I am making
curl -H “x-tyk-authorization: {secret}”
-s
-H “Content-Type: application/json”
-X POST
-d ‘{
“api_definition”: {
“name”: “Test API”,
“slug”: “test-api”,
“api_id”: “1”,
“org_id”: “1”,
“auth”: {
“auth_header_name”: “Authorization”
},
“definition”: {
“location”: “header”,
“key”: “x-api-version”
},
“version_data”: {
“not_versioned”: true,
“versions”: {
“Default”: {
“name”: “Default”,
“use_extended_paths”: true
}
}
},
“proxy”: {
“listen_path”: “/test-api/”,
“target_url”: “http://tyk-vagrant2:9080/”,
“strip_listen_path”: true
},
“active”: true
}
}’
http://tyk-vagrant2:8080/tyk/apis/ | python -mjson.tool
Appreciate any pointers.
Thanks,
PR