Contents:
This API call is used internally for testing the system.
It is meant for the development team and so should be considered fluid.
The API testing system has a long list of predefined named tests. Each test defines an expected result, which can be compared with the actual result of running the test. The result of this API call indicates whether that test passed or failed.
This example runs a named test:
https://api.cyclestreets.net/v2/apitesting.runtest?name=Photomap+categories
Result:
{ "status": true, "time": 55, "call": "photomap.categories", "apiVersion": 2, "name": "Photomap categories", "note": false, "response": "Hidden", "percentage": false, "diagnosis": "", "diagnosisHtml": false }
JSON object as above, showing the outcome of the test.
JSON object containing an error key and a text string.
Example error (text string will vary):
{ "error": "Cannot find named test." }