Testing Book Resources and Routes8:14 with Jonathan Barrios
We created the AuthorResource and used it to remove database specific data such as ID and timestamps. Then, we tested our routes using both POSTMAN and REST Client in order to verify that the data we are exposing to our API consumers is correct. In this section, we’re going to repeat the steps we took when building out the AuthorResource by using the Book model as a guide to specify what data to hide and which to expose.
You need to sign up for Treehouse in order to download course files.Sign up