September 2018
Intermediate to advanced
398 pages
9h 43m
English
When running the test, APISpec, you should not get 404 errors anymore. However, the tests should now fail with the error 501 was not equal to 200.
This is expected. The server can now find the URL mapping for our REST calls, but in our code, all methods are implemented with play.mvc.Results.TODO. This special return value makes the server return the HTTP status error code 501.
What have we achieved? Well, Play is serving all of the URLs of our API. For each of them, it calls the associated method, and returns an error code instead of the real implementation!
Read now
Unlock full access