Hi,
I am using Tyk gateway version 4.2.3 and deploying it through docker compose ( GitHub - TykTechnologies/tyk-pro-docker-demo: Tyk Pro demo using docker and docker compose, supercedes tyk_quickstart.
I put a hostname for this gateway, like xxx.xxx.com.
I noticed that I can curl and get the API by using the hostname, like curl xxx.xxx.com/myapi (I created an api call myapi).
When I tried to called curl localhost:8080/hello, it is working, and showing the proper message:
{“status”:“pass”,“version”:“4.2.3”,“description”:“Tyk GW”,“details”:{“dashboard”:{“status”:“pass”,“componentType”:“system”,“time”:“2023-02-14T04:11:40Z”},“redis”:{“status”:“pass”,“componentType”:“datastore”,“time”:“2023-02-14T04:11:40Z”}}}
However, when I tried to use curl localhost:8080/myapi, it showed not found message.
I am just wondering why I cannot access the Tyk api using curl localhost:8080/myapi?
Is there any reason for this? Is it because I set a hostname for Tyk on the config file? Or is this a bug on Tyk?
Regards,
Maan Tarng