Skip to content

Project - Automated API Validation for a Weather Service

Goal

Create API tests that validate:

  • status codes
  • JSON schema/shape
  • authentication (if applicable)
  • timeouts and retries

Suggested workflow

  1. Pick a weather API (or your own mock service)
  2. Write contract checks
  3. Add negative tests (invalid city, missing key)
  4. Run in CI

Tips

  • Don’t call real paid APIs in CI
  • Use recorded responses or a local mock server

If this helped you, consider buying me a coffee ☕

Buy me a coffee

Was this page helpful?

Let us know how we did