This repository contains automated API contract and health tests for the public JSONPlaceholder API using Postman.
The goal is to ensure response structure, data types, and status codes remain consistent with the documented API behavior.
This project validates:
- HTTP status codes
- Response times
- JSON schema/contract for posts
Tests run automatically using:
- Postman
- Newman
- GitHub Actions CI pipeline
/postman/
βββ JSONPlaceholder_API_Contract_Tests.postman_collection.json
βββ Development_Environment.json
.github/workflows/
βββ api-tests.yml
npm install -g newmannewman run "postman/JSONPlaceholder_API_Contract_Tests.postman_collection.json" -e "postman/Development_Environment.json"All tests run against:
https://jsonplaceholder.typicode.com
The base URL is configured via the baseUrl environment variable in the environment file.
This project includes a CI pipeline that automatically runs all API tests on:
Every push
Every pull request