Contract-First Public API with Tested SDKs, Docs and Safe Versioning

Run a developer platform for a public API: an OpenAPI contract with lint rules and a breaking-change gate, dated versions with deprecation headers, tested Python and TypeScript SDKs, documentation whose samples are executed, rehearsed package releases and honest adoption metrics, all running locally.

Developer Relations Engineer. Advanced.

What you will build and explain

  • Design an API contract first, govern it with lint rules and block breaking changes to released versions automatically.
  • Evolve an API with dated versions, version-change modules and RFC 9745 and RFC 8594 deprecation signals.
  • Hold an implementation to its contract with strict response validation and property-based tests.
  • Build SDKs that retry safely with idempotency keys, raise typed errors, paginate lazily and tolerate new fields.
  • Publish documentation whose code samples are run and type-checked before every build.
  • Release packages to private registries safely and verify them in clean environments.
  • Collect feedback and usage data sparingly, and measure adoption and experiments without overclaiming.

Before you begin

  • Read Python and TypeScript, and use a terminal and Git.
  • Explain HTTP methods, status codes, headers and JSON bodies.
  • Run containers and a simple Compose file; OpenAPI, SDK design and the statistics are taught.
  • A machine with Docker (Compose v2.24+), Git, Python 3, about 4 GB of free memory and 5 GB of free disk.

Who this is for

For backend, platform and developer relations engineers who can read Python and TypeScript and want to run a public API that partners adopt: a governed contract, safe versions, tested SDKs and documentation, and honest adoption numbers.

Curriculum

Learning topics (12)
  1. Check what you need before you start

    This lesson lists what the project assumes you already know, the tools you need and how to check them, and what the project creates on your machine. Nothing here requires an account with any service.

  2. Follow one contract to working integrations

    Brightwell's partners write code against an API they do not own. Everything in this project exists to make that code correct the first time and keep it working as the API changes. Five constraints shape the design:

  3. Design and govern the contract

    A partner integrating with Brightwell needs answers to precise questions: which fields a booking has, which are required, what a conflict looks like, how to get the next page. If those answers live in prose, in code and in examples separately, they drift apart. A contract is one machine-readable description of the API from which everything else is derived and checked. This lesson explains what goes into the contract, how this project structures it, and how lint rules keep it

  4. Change an API without breaking partners

    An API that never changes cannot improve; an API that changes carelessly breaks partners' production systems, which they then blame on you, correctly. This lesson explains how to tell a breaking change from an additive one, how this project detects breaking changes automatically, and how it serves two versions from one implementation while telling partners when the old one goes away.

  5. Prove the implementation matches the contract

    A contract-first API makes a promise in two places: the contract partners read, and the code that answers them. If the two disagree, the generated SDK types, the API reference and the documentation are all confidently wrong. This lesson covers the two mechanisms that hold the sandbox to its contract, what each one catches, and what neither can catch.

  6. Design an SDK developers can trust

    Partners can call the API with any HTTP client, and some will. An official SDK is for everyone else: it should make the right thing the easy thing, so that a partner who writes the obvious code gets authentication, versioning, safe retries, pagination and useful errors without thinking about them. This lesson covers how the two SDKs are structured, which parts are generated and which are written by hand, and the decisions that keep an installed SDK working while the API grows

  7. Retries, idempotency and errors in a client

    Networks fail in ways that look identical to the client and mean very different things to the server. A timeout can mean the request never arrived, or that the booking was made and only the answer was lost. This lesson covers how the SDKs decide whether to retry, how long to wait, how idempotency keys make a retried booking safe, and how errors reach your code in a form you can act on.

  8. Documentation that is executed

    Documentation is usually where an API's quality first becomes visible to a partner, and usually the first thing to go stale. A sample that worked at launch fails a year later because a field was renamed, and the partner who copies it opens a support ticket. This lesson covers how the Brightwell documentation is organised, why every sample is a file that tests run, and what the build checks.

  9. Release packages and verify what developers receive

    An SDK only helps partners once it is installable, and what they install is not your working copy: it is an archive built by a tool, uploaded to a registry and downloaded into an environment you have never seen. This lesson covers semantic versioning, what goes into a Python wheel and an npm package, why releases are immutable, how the lab's registries prevent dependency confusion, and how a clean-room check tests the package partners actually get.

  10. Collect feedback and usage data responsibly

    A developer relations team runs on feedback: which pages confuse people, which errors partners hit, who is stuck on an old version. Collecting it creates a responsibility, because the people giving feedback are not your customers' data subjects to mine. This lesson shows a feedback path and a usage-data design that collect only what a decision needs, remove what slips through, delete it on schedule and say so openly.

  11. Measure adoption, not reach

    Developer relations is easy to measure badly. Page views, conference talks and followers rise whenever the team is busy, and none of them says whether a single partner shipped an integration. This lesson defines adoption metrics that do, shows how the devrel report computes them, and walks through analysing a documentation experiment without claiming more than the data supports. The 12-week dataset is synthetic and labelled so; the method is what transfers.

  12. Test a developer platform

    A public API has more ways to break than an internal service, because the people who notice are outside the team: a renamed field, a sample that no longer runs, a retry that books twice, a wheel without its types. This lesson maps every kind of test in the project to the failure it catches, shows how each layer gets an oracle (something that knows the right answer), and explains how the tests themselves are tested.

Practical build steps (10)
  1. Prepare the workstation and secrets

    Starting point: a machine with Docker, Git and Python 3, and the project's source files. End point: checked tools, four free ports and three secret files in source/.lab/secrets/. Nothing is running yet.

  2. Build the images and start the lab

    Starting point: secrets generated. End point: the sandbox, the docs site and both package registries running on 127.0.0.1, healthy, with strict mode and failure simulation switched on.

  3. Check the contract

    Starting point: the toolbox image built and the Node packages installed. End point: both API versions linted, generated files confirmed current and the breaking-change gate passed against the released snapshots.

  4. Make a first call and book with each SDK

    Starting point: the lab running. End point: a sandbox API key exported in your terminal, a first call read header by header, two problem documents examined and one booking made from each SDK.

  5. Watch a lost response being recovered

    Starting point: BRIGHTWELL_API_KEY exported. End point: one booking made through a client whose first response was deliberately lost, and two log lines that show the retry was answered from the stored outcome.

  6. Call the deprecated version and migrate

    Starting point: the lab running and a key exported. End point: the legacy integration booked through 2026-03-01 with its deprecation warnings read, and the migrated integration booked through 2026-09-01.

  7. Release the SDKs and install them in a clean room

    Starting point: the registries running and a key exported. End point: both SDKs published once to the local registries, a second publish refused, and each package installed into an empty container that books a room.

  8. Give feedback and read the adoption report

    Starting point: the lab running, with some calls from earlier milestones. End point: a feedback answer stored with its personal details redacted, and an adoption report over a 12-week synthetic dataset and over your own sandbox.

  9. Run the tests and try a breaking change

    Starting point: the lab running. End point: contract tests, offline checks and integration tests passed, and a deliberately breaking contract change caught by the gate and then reverted.

  10. Remove everything

    Starting point: any state, including a half-finished or failed milestone. End point: no containers, network, volumes or images of the brightwell-devrel project, no generated files or secrets, and four free ports, confirmed by checks that print nothing.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

Runs entirely on your machine with Docker Compose: about 2 GB of image and package downloads and a few hundred megabytes of local volumes. No cloud account, paid service, public package registry account or hosted lab is used or included.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Packages and container images downloaded when building, such as FastAPI, Schemathesis, Redocly CLI, Material for MkDocs, pypiserver and Verdaccio, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy