}
the create Api responce is
{
“key”: “MKTEnd3”,
“status”: “ok”,
“action”: “added”
}
but when is check this in list of Api End point {{baseUrlTyk}}//tyk/apis
the Api isn’t there
any idea whats wrong with this??
and one more thing after creating this tcp api what would be my end point to call this api??
tcp://{{baseUrlTyk}}/{my api listen_path } this will be the URL ??
You seem to be missing the listen_port field in the API definition. You also don’t need most of the other fields and proxy subfields. The minimal you need is shown in the documentation. You could append then active, name and api_id fields
thank you so much for detailed clarification …
so after seeing this
{
“active”: true,
“api_id”: “ac4ba7ac44ef4f148187a1f65a8814c6”,
“enable_proxy_protocol”: false,
“name”: “Sample TCP API”,
“listen_port”: 8081,
“protocol”: “tcp”,
“proxy”: {
“target_url”: “tcp://2.tcp.ngrok.io:13812”
},
“slug”: “sample.tcp.api”
}
the call enpoint for this “tcp://2.tcp.ngrok.io:13812” would be “localhost:8081”