Project - Automated API Validation for a Weather Service
Create API tests that validate:
- status codes
- JSON schema/shape
- authentication (if applicable)
- timeouts and retries
Suggested workflow
Section titled “Suggested workflow”- Pick a weather API (or your own mock service)
- Write contract checks
- Add negative tests (invalid city, missing key)
- Run in CI
- Don’t call real paid APIs in CI
- Use recorded responses or a local mock server
pch.coffeeTagline
pch.coffeeCtapch.feedbackHeading
pch.feedbackSubheading