Tuning your API
Now that we have the fundamentals for our program, we want to validate the data that is coming in, both to speed things up and to protect against malicious data. We can do that with validation, but first, we need to make a couple of changes to give us good code to work with.