Wrap an External API in a Typed Client

Use Copilot to build a typed wrapper for an external API with tests.

category:backend
api-client
typescript
workflow
multi-step
0

Prompt

A workflow to safely wrap external services into typed, tested client abstractions.

## Steps:

1. Gather the API docs/OpenAPI spec.

2. Create a client file.

3. Ask Copilot: "Generate a TypeScript client for these endpoints."

4. Add consistent error handling.

5. Mock responses and auto-generate tests.

6. Integrate the new client.

7. Document each method.