{"id":28713865,"url":"https://github.com/dim-dimy4/api-postman-tests","last_synced_at":"2025-06-15T01:00:19.401Z","repository":{"id":298535323,"uuid":"1000301426","full_name":"dim-dimy4/API-postman-tests","owner":"dim-dimy4","description":"Automated API testing project using Postman and Newman.","archived":false,"fork":false,"pushed_at":"2025-06-11T15:42:59.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-11T17:06:39.884Z","etag":null,"topics":["api-testing-qa","newman","portfolio","postman","test-automation"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dim-dimy4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-11T15:07:40.000Z","updated_at":"2025-06-11T15:45:56.000Z","dependencies_parsed_at":"2025-06-11T17:06:41.255Z","dependency_job_id":"b33d7c8f-7a82-4a39-94bb-a30a1fd2dd2e","html_url":"https://github.com/dim-dimy4/API-postman-tests","commit_stats":null,"previous_names":["dim-dimy4/api-postman-tests"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dim-dimy4/API-postman-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dim-dimy4%2FAPI-postman-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dim-dimy4%2FAPI-postman-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dim-dimy4%2FAPI-postman-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dim-dimy4%2FAPI-postman-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dim-dimy4","download_url":"https://codeload.github.com/dim-dimy4/API-postman-tests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dim-dimy4%2FAPI-postman-tests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259906018,"owners_count":22929963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-testing-qa","newman","portfolio","postman","test-automation"],"created_at":"2025-06-15T01:00:16.969Z","updated_at":"2025-06-15T01:00:19.346Z","avatar_url":"https://github.com/dim-dimy4.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Testing Project with Postman \u0026 Newman\n\nThis repository contains automated API tests using [JSONPlaceholder](https://jsonplaceholder.typicode.com), written in Postman and executable via Newman CLI.  \nThe purpose is to demonstrate testing of common REST methods (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS) with assertions on status codes and response content.\n\n---\n\n## Covered Endpoints\n\n| Method | Endpoint              | Description                    |\n|--------|------------------------|--------------------------------|\n| `GET`  | `/posts/1`             | Retrieve a post by ID          |\n| `POST` | `/posts`               | Create a new post              |\n| `PUT`  | `/posts/1`             | Full update of a post          |\n| `PATCH`| `/posts/1`             | Partial update of a post       |\n| `DELETE`| `/posts/1`            | Delete a post                  |\n| `HEAD` | `/posts/1`             | Check response headers         |\n| `OPTIONS` | `/posts`           | Verify allowed HTTP methods    |\n\n---\n\n## Tech Stack\n\n- [Postman](https://www.postman.com/) – request management and test scripting  \n- [Newman](https://github.com/postmanlabs/newman) – command-line test runner  \n- JavaScript test assertions (inside Postman)  \n- HTML report generation via Newman\n\n---\n\n## How to Run Tests\n\n### Prerequisites\n- Node.js installed\n- Newman installed globally:\n```bash\nnpm install -g newman\n```\n## To install Newman\n```bash\nnpm install -g newman-reporter-html\n```\n\n## Run the tests\n```bash\nnewman run TestCollection.postman_collection.json\n```\n## Generate an HTML Report\n```bash\nnewman run TestCollection.postman_collection.json -r html --reporter-html-export newman-report.html\n```\n## Example Test (in Postman)\n```bash\npm.test(\"Status code is 200\", function () {\n    pm.response.to.have.status(200);\n});\n\npm.test(\"Response has title\", function () {\n    const jsonData = pm.response.json();\n    pm.expect(jsonData).to.have.property(\"title\");\n});\n\n```\n## Project Structure\n```bash\n├── .gitignore\n├── README.md\n└──  api-postman-tests/\n    ├── TestCollection.postman_collection.json\n    └── newman-report.html\n\n```\n## Notes\n\nThis project uses a `.gitignore` file (Node.js template) to avoid tracking unnecessary files if extended in future.\n\n## Contacts\nE-mail: kachuk.mail@gmail.com\nLinkedIn: [Dmytro Kachuk](https://www.linkedin.com/in/dmytro-kachuk-289628206/)  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdim-dimy4%2Fapi-postman-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdim-dimy4%2Fapi-postman-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdim-dimy4%2Fapi-postman-tests/lists"}