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
- Experience building or consuming at least one HTTP API in any language
- Comfortable reading JSON and basic code examples (examples use TypeScript and Python)
- Backend basics help; see Node.js and Express: Build REST APIs or FastAPI: Fast, Typed Python APIs
Outcomes
By the end of this course you will be able to:
- Turn business requirements into a clear resource model and API contract.
- Design consistent REST endpoints with sensible errors, pagination and versioning.
- Design a GraphQL schema and avoid its common performance traps.
- Choose between REST and GraphQL for a project and justify the choice.
Course outline
| Module | Topic |
|---|---|
| 1 | What makes an API good: consumers, contracts and trade-offs |
| 2 | Resource modelling from a business domain |
| 3 | REST fundamentals: methods, status codes and idempotency |
| 4 | Pagination, filtering, sorting and caching |
| 5 | Error design and validation feedback |
| 6 | Versioning and evolving an API safely |
| 7 | Contract-first design with OpenAPI |
| 8 | GraphQL schemas, queries and mutations |
| 9 | GraphQL resolvers, batching and performance |
| 10 | Authentication, authorisation and rate limiting |
| 11 | API security risks and how to test for them |
| 12 | Project: 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.