Syllabus

  1. 01API Lifecycle and DesignWhat an API contract is, how an API lives through five stages, and how to pick resource names, HTTP methods, status codes and error bodies that other developers can guess.3 lessons
    1. 01The API Lifecycle and the Contract
    2. 02Resources, URLs and HTTP Methods
    3. 03Status Codes and Error Bodies
  2. 02YAML for API DescriptionsRead and write the YAML that most OpenAPI documents use: mappings, lists, quoting, long text, and the handful of traps that turn a valid-looking file into a broken one.1 lesson
    1. 01YAML Basics and Traps
  3. 03Reading an OpenAPI DocumentWalk through a real OpenAPI 3.1 document for the Wrenchwell repair desk: the top-level fields, operations and responses, parameters and request bodies, and how components and references remove repetition.3 lessons
    1. 01The Shape of an OpenAPI Document
    2. 02Parameters, Request Bodies and Schemas
    3. 03Reuse with Components and $ref
  4. 04Design First with Swagger ToolsChoose between design first and code first, lint a contract before anyone builds on it, and see what Swagger Editor, Swagger UI and Swagger Codegen each do, including which OpenAPI versions they understand.2 lessons
    1. 01Design First, Code First and Linting
    2. 02Swagger Editor, Swagger UI and Swagger Codegen
  5. 05Documenting and Securing an APITurn a valid contract into documentation people use: descriptions, examples, tags and deprecation, including the 3.2 tag features. Then describe how callers authenticate with security schemes, scopes and per-operation rules.2 lessons
    1. 01Documentation People Use
    2. 02Describing Security