{"id":13752499,"url":"https://github.com/mfaisalkhatri/rest-assured-examples","last_synced_at":"2025-04-09T09:06:01.606Z","repository":{"id":43759020,"uuid":"429911642","full_name":"mfaisalkhatri/rest-assured-examples","owner":"mfaisalkhatri","description":"Learn API testing using rest-assured framework.","archived":false,"fork":false,"pushed_at":"2024-08-01T13:00:12.000Z","size":5044,"stargazers_count":182,"open_issues_count":1,"forks_count":79,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-12T03:26:02.325Z","etag":null,"topics":["api-automation","apitesting","automation-test","hacktoberfest","learning-by-doing","rest-assured","test-automation","testing","testing-framework","tutorial"],"latest_commit_sha":null,"homepage":"https://mfaisalkhatri.github.io/rest-assured-examples/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mfaisalkhatri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"mfaisalkhatri"}},"created_at":"2021-11-19T19:26:29.000Z","updated_at":"2024-09-20T02:38:05.000Z","dependencies_parsed_at":"2024-08-03T09:03:56.067Z","dependency_job_id":"79552300-4af3-49a4-98f8-e2f97f1f89c8","html_url":"https://github.com/mfaisalkhatri/rest-assured-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Frest-assured-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Frest-assured-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Frest-assured-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfaisalkhatri%2Frest-assured-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfaisalkhatri","download_url":"https://codeload.github.com/mfaisalkhatri/rest-assured-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008629,"owners_count":21032556,"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-automation","apitesting","automation-test","hacktoberfest","learning-by-doing","rest-assured","test-automation","testing","testing-framework","tutorial"],"created_at":"2024-08-03T09:01:06.732Z","updated_at":"2025-04-09T09:06:01.586Z","avatar_url":"https://github.com/mfaisalkhatri.png","language":"Java","funding_links":["https://github.com/sponsors/mfaisalkhatri"],"categories":["Don't forget to give a :star: to make the project popular"],"sub_categories":[],"readme":"[![Java CI with Maven](https://github.com/mfaisalkhatri/rest-assured-examples/actions/workflows/maven.yml/badge.svg)](https://github.com/mfaisalkhatri/rest-assured-examples/actions/workflows/maven.yml)\n![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n## Don't forget to give a :star: to make the project popular.\n\n## :question: What is this Repository about?\n\nThis project is the outcome of my self-learning about the API Testing Automation framework - Rest-assured.\nI heard a lot about Rest-Assured and how it made the QA's life easier by helping them to run all the tedious API tests\nin an efficient way.\nHence, I started learning about the framework and have documented all my learnings in this repository with all\nexample code from writing basic tests to running end to end API automation tests.\n\n## :briefcase: What does this repo contain?\n\n- This repo contains example codes of API Tests using Rest-Assured.\n- `Hamcrest Matchers` are used for assertions.\n- [TestNG](https://testng.org) Listeners are used to capture the events in logs.\n- `Log4j` is used to capture logs.\n- [Lombok](https://projectlombok.org/) is used to generate Getter and Setters automatically for post body\n  requests.\n- FAKE Rest APIs on [Reqres.in](https://reqres.in/) is used for testing.\n- End to End scenarios have been added for\n  the [restful booker APIs](https://restful-booker.herokuapp.com/apidoc/index.html).\n\n## :hammer_and_wrench: Talking more about the Scenarios Covered in this project:\n\nYou will get the answers to the following questions and its respective working code example with rest-assured\nframework in this repository:\n\n- How to write tests for `Get` requests?\n- How to write tests for `POST` requests?\n- How to write tests for `PUT` requests?\n- How to write tests for `PATCH` requests?\n- How to write tests for `DELETE` requests?\n- How to handle the `authentication` requests?\n- How to write tests for `SOAP API` requests?\n- How to verify the Response Body?\n- How to verify the Response Status Code?\n- How to verify the Response headers?\n- How to extract value from Response Body?\n- How to perform assertions using `Hamcrest Matchers`?\n- How to create `POJO` for passing values to request body?\n- How to use `Lombok` to generate `Getters` and `Setters`?\n- How to use `Lombok` for writing the builder pattern code?\n- How to use Builder Pattern for test data generation using [Data Faker](https://github.com/datafaker-net/datafaker)?\n- How to write end-to-end api tests?\n- How to perform `JSON Schema Validation`?\n\n## :writing_hand: Blog Links\n\n- [What is API Testing?](https://mfaisalkhatri.github.io/2020/08/08/apitesting/)\n- [End to End API testing using rest-assured](https://medium.com/@iamfaisalkhatri/end-to-end-api-testing-using-rest-assured-a58c4ea80255)\n- [How to perform JSON Schema Validation using Rest-Assured?](https://medium.com/@iamfaisalkhatri/how-to-perform-json-schema-validation-using-rest-assured-64c3b6616a91)\n- [API Testing using RestAssured and OkHttp](https://mfaisalkhatri.github.io/2020/05/29/restassuredokhttp/)\n\n## :movie_camera: Tutorial Video\n\n[![Watch the video](https://img.youtube.com/vi/xLKpdQE0oKY/hqdefault.jpg)](https://www.youtube.com/watch?v=xLKpdQE0oKY\u0026t=1s)\n[![Watch the video](https://img.youtube.com/vi/AFQSolEeu74/hqdefault.jpg)](https://www.youtube.com/live/AFQSolEeu74?si=8WROMbunjUuzqqQj\u0026t=1)\n\n\n## :question: Need Assistance?\n\n- Discuss your queries by writing to me @ `mohammadfaisalkhatri@gmail.com`\n  OR ping me on any of the social media sites using the below link:\n    - [Linktree](https://linktr.ee/faisalkhatri)\n\n## :computer: Paid Trainings\n\n- Contact me for Paid trainings related to Test Automation and Software Testing,\n  mail me @ `mohammadfaisalkhatri@gmail.com` or ping me on [LinkedIn](https://www.linkedin.com/in/faisalkhatri/)\n\n## :thought_balloon: Checkout the blogs related to Testing written by me on the following links:\n\n- [Medium Blogs](https://medium.com/@iamfaisalkhatri)\n- [LambdaTest Blogs](https://www.lambdatest.com/blog/author/mfaisalkhatri/)\n- [My Website](https://mfaisalkhatri.github.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfaisalkhatri%2Frest-assured-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfaisalkhatri%2Frest-assured-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfaisalkhatri%2Frest-assured-examples/lists"}