Chapter 2. Application Design

Before implementing various web APIs, we need to create a context in which we can use these APIs. We need an educational application that will encapsulate various APIs into one project. Without such an application, our web APIs would be loosely hanging code snippets that are hard to relate to. Hence, having an application at the core will benefit you because it’s easier to relate to something you can understand, see and touch.

In this chapter, we’ll design an application — the weather forecast service (WFS) — by translating client needs to domain concepts and concepts to the code. Then, in the following chapters, we’ll implement the relevant APIs based on the system design that we create in this chapter.

There are two starting points when approaching a system design: informal and formal, each lying at the opposite end of the spectrum. Leslie Lamport gave an overview of this spectrum in a talk thinking ...

Get Learning API Styles now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.