Explain Your Walks API

Your walks API now passes both graded project exercises. It reads its settings from .env and stops when one is wrong. It lets only pages from Priya’s origin read its responses, and every request leaves a safe JSON line in the log.

Passing tests shows that the code works. However, the co-op will rely on you when something goes wrong, and that takes knowing why the code works.

In this review, you’ll explain your API to the mentor in your own words and then change it in a way you haven’t practiced. You’ll show that you can predict which settings your server ends up with, say what the allow-list does and doesn’t protect, and follow a neighbor’s report to the right log lines.

Get Your Project Ready

The mentor can’t see your files, so it works from the code and output that you paste into the conversation. Open your finished project, with the API running in one terminal and a second terminal free for curl. Paste code files such as config.ts when the mentor asks for them.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.