An API is a promise to the people and programs that use it. Once clients depend on it, every awkward name, inconsistent error or missing page of results becomes expensive to fix. This course is about the design decisions behind good APIs, independent of any one language or framework. You will design the same system as a REST API and as a GraphQL API, and learn where each style fits.

What you'll learn

  • Modelling resources and relationships from a real business domain
  • REST conventions: methods, status codes, idempotency and caching headers
  • Naming, consistency and designing for the client rather than the database
  • Pagination, filtering, sorting and partial responses
  • Error formats that help clients recover, including problem details (RFC 9457)
  • Versioning and evolving an API without breaking existing clients
  • GraphQL schemas, queries, mutations and resolvers
  • GraphQL performance: the N+1 problem, batching and query cost limits
  • Authentication, authorisation, rate limiting and common API security risks
  • Contract-first design and documentation with OpenAPI and GraphQL introspection

Who it's for

  • Backend developers who build APIs and want them to age well
  • Front-end and mobile developers who want to shape the APIs they consume
  • Tech leads and architects setting API standards for a team

Prerequisites

Outcomes

By the end of this course you will be able to:

  1. Turn business requirements into a clear resource model and API contract.
  2. Design consistent REST endpoints with sensible errors, pagination and versioning.
  3. Design a GraphQL schema and avoid its common performance traps.
  4. Choose between REST and GraphQL for a project and justify the choice.

Course outline

ModuleTopic
1What makes an API good: consumers, contracts and trade-offs
2Resource modelling from a business domain
3REST fundamentals: methods, status codes and idempotency
4Pagination, filtering, sorting and caching
5Error design and validation feedback
6Versioning and evolving an API safely
7Contract-first design with OpenAPI
8GraphQL schemas, queries and mutations
9GraphQL resolvers, batching and performance
10Authentication, authorisation and rate limiting
11API security risks and how to test for them
12Project: design review of a complete API

FAQ

Is GraphQL replacing REST?

No. Most public and internal APIs are still REST, and GraphQL is common where many clients need different shapes of the same data. The course helps you choose for each project.

Do I need to write a lot of code?

Less than in a framework course. Most modules involve designing contracts and reviewing examples, with small implementations to test the design.

Does the course cover gRPC or webhooks?

We cover webhooks as part of API design and briefly compare gRPC, but the focus stays on REST and GraphQL.

How do I join?

Get in touch and we'll share the current format, schedule and enrolment details.