Proper API test is now completed, uses @context and is now located in ApiController.php. Visit e.g. http://hyperrail.dev/apitest to see the returned JSON-LD.