May 30 2014
API-Axle: Tips, Tricks and Gotchas
This is a brief post to help beginners with API-Axle. What is API-Axle? As described on their site:
ApiAxle is a proxy that sits on your network, in front of your API(s) and manages things that you shouldn’t have to, like rate limiting, authentication and analytics. It’s fast, open and easy to configure.
Here are some tips to help out with the initial instructions at: http://apiaxle.com/docs/try-it-now/ .
Note: myapi in myapi.api.localhost should be replaced by your own api name.
Increase Timeout
The initial timeout (2 seconds) can result in errors because your backend API server takes time to reply to api-axle. In order to increase this you can use the endPointTimeout parameter.
Example (10 seconds):
axle> api "myapi" create endPoint="stream.site.org:80" endPointTimeout=10 axle> key "1234" create axle> api myapi linkkey "1234"
Recent Comments