.env
file at the root of your installation
Create a file named .env
in the root directory of your cloned repository and add your license key:
.env.example
file as a reference or starting point.
Note: Files starting with a dot (like.env
) are hidden by default in Unix-based systems. Use thels -a
command to view them in your terminal.
http://localhost:3000
http://localhost:3001
Overview
section of the Developer Portal.http://localhost:8080/httpbingo
/get
: Returns request data (headers, query parameters)/headers
: Shows all request headers/ip
: Returns the client’s IP address/xml
: Demonstrates response transformation (XML to JSON)/status/{code}
: Returns specified HTTP status code/mock
: Returns a mock response generated by Tykhttp://localhost:8080/f1-api
(proxies to https://f1api.dev/api/)
topspecial256sharedbitlongsecret
Authorization: Bearer <your_jwt_token>
/drivers
: Information about F1 drivers/seasons
: Data about F1 racing seasons/circuits
: Details about F1 racing circuits/teams
: Information about F1 teamsEndpoints
tab to see how individual endpoints are configuredHTTPBIN API Access
policy
httpbin
key ID
for testing
Note: This key will be used in the upcoming sections to authenticate requests to the httpbingo API.
HTTPBIN API Access
policy
httpbin rate limit
key ID
for testing
httpbin rate limit
key and set a value of 100
in the “requests” section of rate limiting.httpbin rate limit
API key from the Dashboard.
/xml
endpoint that converts XML responses to JSON format.
Testing the XML to JSON Transformation:
/xml
path and click on it/get
endpoint with a 10-second cache lifetime. This means that repeated requests within 10 seconds will receive the same cached response.
Testing Caching Behavior:
Note: You can also check the X-Tyk-Cached-Response
header in the response to confirm whether the response was served from cache or not.