Testing the APIs
Our APIs are published, lets verify all works as expected.
- Check that the authentication is failing when not providing an API key
curl -k# https://$microhost/v1/stock/ticker/all
Output
- Try again but this time including the API key and the test-client value
curl -k# https://$microhost/v1/stock/ticker/all --header "apikey: 0123456789"
Output
- The configuration is rate limiting to 5 request per 1 minute sliding window. Repeat the above command 6 times. The last request will be blocked due to reaching the rate limit.
Output