Subscribe to access all episodes. View plans →

#76: Validating API Parameters Part 1

Published December 10, 2018

In this episode let’s see how we can validate data that doesn’t have an associated schema. To start let’s take a quick look at the application we’ll be using. Here we have a Phoenix API search route that our users can use to query for an album that’s in our database.

When a new request is made, we want to validate the params so that we can lookup an album and return it…