← All Learning Paths

API Product Manager

Own an API as a product: versioning and deprecation, backward compatibility, OpenAPI contracts, contract drift detection, and release governance.

roleintermediate8 nodes11.33h total

Path overview

把 API 当作产品经营:版本与弃用、向后兼容、OpenAPI 契约、契约漂移检测与发布治理。

Own an API as a product: versioning and deprecation, backward compatibility, OpenAPI contracts, contract drift detection, and release governance.

  1. Read "API Design Principles for Long-lived Systems" for the "Errors That Tell the Consumer What to Do" argument, then name the decision in api product manager work it would change.

    Completion criteria: Record a short walkthrough of "API Design Principles for Long-lived Systems" with timestamps at "Errors That Tell the Consumer What to Do" and "Hypermedia and Discoverability (HATEOAS)", plus the commit that applies it.

    Next step: Add API Deprecation Headers

    ⏱ 1h

  2. Apply "Add API Deprecation Headers" to a api product manager task, checking that "The dashboard shows which clients still depend on the old endpoint." appears after the "Set the Deprecation header, a Sunset date, and a Link to the replacement on every response" step.

    Prerequisites: API Design Principles for Long-lived Systems

    Completion criteria: Run the steps through "Set the Deprecation header, a Sunset date, and a Link to the replacement on every response", paste the command output, and mark the line that matches "The dashboard shows which clients still depend on the old endpoint."; then rerun with one parameter changed.

    Next step: Catch Breaking OpenAPI Changes Before Release with oasdiff

    ⏱ 0.5h

  3. Execute "Catch Breaking OpenAPI Changes Before Release with oasdiff" end to end, then repeat the last step with one parameter changed and compare "Compare the current OpenAPI spec against the released one in CI and block merges that".

    Prerequisites: Add API Deprecation Headers

    Completion criteria: Deliver a transcript of "Catch Breaking OpenAPI Changes Before Release with oasdiff" with each step's command and observed state, ending at "Compare the current OpenAPI spec against the released one in CI and block merges that".

    Next step: Diff a Live API Response Against Its OpenAPI Spec

    ⏱ 0.5h

  4. Run "Validate a live endpoint response against the OpenAPI document and enumerate every" from "Diff a Live API Response Against Its OpenAPI Spec" and confirm the documented result "The command prints a $ref such as #/components/schemas/CheckoutResponse, identifying the".

    Prerequisites: Catch Breaking OpenAPI Changes Before Release with oasdiff

    Completion criteria: Run "Diff a Live API Response Against Its OpenAPI Spec" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Review API Contract Changes Before Merge

    ⏱ 0.5h

  5. Carry out "Review API Contract Changes Before Merge" on a api product manager project, pausing at the "Diff the contract: Compare the proposed OpenAPI document with the base branch and list" step to verify "Every breaking change is identified before merge.".

    Prerequisites: Diff a Live API Response Against Its OpenAPI Spec

    Completion criteria: Deliver a transcript of "Review API Contract Changes Before Merge" with each step's command and observed state, ending at "Diff the contract: Compare the proposed OpenAPI document with the base branch and list".

    Next step: API Versioning and Sunset Release

    ⏱ 0.5h

  6. Use "API Versioning and Sunset Release" to decide "Consumers can identify the version they call and find migration instructions.", then prove the outcome with "Evolve an API without breaking existing consumers by running versions in parallel and".

    Prerequisites: Review API Contract Changes Before Merge

    Completion criteria: Record the state "Evolve an API without breaking existing consumers by running versions in parallel and" at the verification step, then paste the output of "Consumers can identify the version they call and find migration instructions." that proves it.

    Next step: Classify an API Version Lifecycle Stage

    ⏱ 1h

  7. In the "API Product Manager" path, implement "Classify an API Version Lifecycle Stage" so JSON object: { version, now, deprecation?: { announcedAt, sunsetAt } } yields {version:2024-06,stage:current}, including the second sample's edge case.

    Prerequisites: API Versioning and Sunset Release

    Completion criteria: Submit a solution for "API Product Manager" that passes both samples ({version:2024-06,now:2024-03-01T00:00:00Z,deprecation:{annou to {version:2024-06,stage:current}) and attach the failing case you fixed.

    Next step: Capstone: API Product Manager

    ⏱ 0.33h

  8. Ship "Authenticate and authorize" from "Build a Configurable API Gateway", then prove it with the project's test suite and an acceptance note.

    Prerequisites: API Versioning and Sunset Release, Classify an API Version Lifecycle Stage

    Completion criteria: Run the project's test command for "Build a Configurable API Gateway", paste the passing output, and attach the acceptance note for "Authenticate and authorize" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h