Web / API Series

🎓 The Web/API Department's Capstone Project: Turning a Fictional SaaS Startup's Public API Platform Into a Portfolio Piece, a "Top 1%" Integrative Exercise

Introduction

This article is part of the Top 1% Series Complete Article Guide. It’s positioned as the capstone project within the Web/API Department’s full curriculum.

Prerequisite Knowledge

This hands-on doesn’t teach any new technique. You’ll combine and use the techniques you’ve already mastered in the following completed hands-on labs.

The Assignment: a Fictional SaaS Startup’s Public API Platform

You’re an infrastructure engineer at a fictional SaaS startup, “KoiKoi Tasks.” The company runs a task-management service, and is launching a public API platform letting third-party developers operate a user’s tasks from their own apps. Your assignment is to build, on your own, an API platform that satisfies all of the following requirements.

graph TB
    ThirdParty["Third-Party App"]
    OAuth["OAuth 2.0<br/>(Authorization Server)"]
    Gateway["API Gateway<br/>(JWT verification, rate limiting)"]
    RestAPI["RESTful API<br/>(task CRUD)"]
    PaymentWebhook["Payment Webhook Receiver<br/>(signature verification, deduplication)"]
    ThirdParty -->|"① requests authorization"| OAuth
    OAuth -->|"② issues an access token"| ThirdParty
    ThirdParty -->|"③ a request with the token"| Gateway
    Gateway --> RestAPI
    PaymentService["Payment Service"] -->|"event notification"| PaymentWebhook

Requirement 1: Prevent a Third-Party Developer From Accessing Data Without the User’s Permission

Build a mechanism that obtains the user’s own explicit permission before a third-party app can operate the user’s tasks on their behalf. The premise is that a password is never handed to the third-party app at all.

Requirement 2: Design Task CRUD Operations as a RESTful API That Correctly Preserves Idempotency

Build an API for creating, retrieving, updating, and deleting tasks. In particular, design the update operation so it’s safe to send the same request multiple times.

Requirement 3: Guarantee That Verifying an Issued Token Is Structurally Safe

When the API gateway verifies an incoming token, eliminate the design flaw of unconditionally trusting information carried inside the token itself.

Requirement 4: Protect the Whole Service From Excessive Requests by a Specific Client

Make sure one client sending a flood of requests in a short time never consumes the entire service’s processing capacity. Also watch out for the unintended loophole a naive implementation can carry.

Requirement 5: Safely Receive Notifications From the Payment Service

When a user subscribes to the premium plan, receive the notification sent by the payment service, and verify it genuinely came from the legitimate payment service. Make sure the premium plan never gets activated twice if the same notification arrives more than once.

Requirement 6: Consider Whether You Can Flexibly Handle Multiple Different Clients’ Requirements

A web app and a mobile app, two different clients, may each need a differently shaped set of data. Consider what design options would exist if this requirement ever needs addressing in the future.

Deliverable Requirements: Assemble It as a Portfolio

This hands-on’s final deliverable isn’t just a confirmation that the configuration worked. Put together a repository, on GitHub or similar, containing:

This deliverable itself is a concrete accomplishment you can present in a job search or as a portfolio piece. Being able to show “I designed a solution combining multiple techniques under the realistic constraints of third-party integration, and can articulate the security-versus-usability trade-offs” is far more persuasive than simply saying “I did the OAuth 2.0 hands-on.”

What a Pro Sees Here (Top 1% Understanding)

“Following Steps” and “Designing From Requirements” Are Entirely Different Skills

Every earlier hands-on in this series took the form of “Step 1, Step 2, …” — following a fixed, predetermined sequence. But what actually gets valued in real-world work isn’t the ability to execute a procedure exactly as written — it’s the ability to look at given requirements (Requirements 1 through 6 in this article) and design, yourself, which techniques to combine, and how. These are similar-looking but entirely different skills. Completing every individual hands-on doesn’t make you immediately effective in real work if you’ve never designed one coherent API platform combining them. This capstone project is deliberately designed to bridge exactly that gap.

Why a “Third-Party Plus Payment Integration” Setting?

There’s a reason this hands-on deliberately models a realistic project — integrating with both external developers and an external payment service — instead of a single-shot technical demo. Most real-world API platform builds never wrap up with a single purpose — they need to simultaneously satisfy multiple axes: authorization, authentication safety, resilience against excessive use, and safe integration with external services. Knowing the basics of RESTful API design alone doesn’t help in a real project if you can’t also see ahead to OAuth 2.0, safe JWT verification, rate limiting, and safely receiving a webhook. The ultimate goal of this capstone is elevating your knowledge of individual techniques into the design ability to see every external connection point at once.

Common Misconceptions and Pitfalls

Troubleshooting Perspective

This hands-on’s main challenge isn’t individual technical troubleshooting — it’s design rework.

  1. You thought you satisfied the requirements, but notice a contradiction later: Before starting implementation, write out only the design section of README.md first, and confirm on paper that all six requirements are genuinely satisfied.
  2. You’ve forgotten the steps for an individual hands-on: Don’t hesitate to go back and re-read the prerequisite article for that requirement. This capstone tests design ability, not memorization.
  3. You’re not sure how thorough to make this: Use “could I show this README.md to an interviewer I’ve never met and explain my design decisions” as your bar for completeness.

Summary

Takeaways to Apply Today

  1. Even while learning individual hands-on labs, build the habit of asking “under what future requirements would I actually use this?”
  2. Beyond the technical deliverable itself, build the habit of articulating security-versus-usability trade-offs in your day-to-day work too.

References

Comments

Feel free to leave thoughts, questions, or corrections below (sign in with a GitHub account to comment or react).