Category: Data

In part 1 we designed our API using OpenAPI/Swagger. If you haven’t already, you’ll need to install Perl.

I rec­om­mend you install Straw­ber­ry Perl as it lets you devel­op Perl appli­ca­tions using the same tools that our Unix-based brethren use.

After you’ve ver­i­fied that it works, hold down the Con­trol key and type the let­ter C in your ter­mi­nal to stop the script.

Let’s add some tests to the same t/word.t script, under­neath the first one: Here we’re test­ing that we get back the def­i­n­i­tion we saved, that we can delete the def­i­n­i­tion, and that when we try to retrieve it again we get a 404 Not Found error.

Related Articles