{"id":22419881,"url":"https://github.com/testertech/wiremock-stateful-api-testing","last_synced_at":"2025-03-27T04:41:43.186Z","repository":{"id":159879744,"uuid":"465468761","full_name":"TesterTech/WireMock-stateful-api-testing","owner":"TesterTech","description":"Code for the YT video https://youtu.be/lXNJUzCTpEo WireMock and Rest-Assured for statefull API testing","archived":false,"fork":false,"pushed_at":"2022-03-15T21:30:30.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T10:11:16.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/TesterTech.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}},"created_at":"2022-03-02T21:04:20.000Z","updated_at":"2022-03-05T21:41:00.000Z","dependencies_parsed_at":"2023-05-03T14:48:20.019Z","dependency_job_id":null,"html_url":"https://github.com/TesterTech/WireMock-stateful-api-testing","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/TesterTech%2FWireMock-stateful-api-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TesterTech%2FWireMock-stateful-api-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TesterTech%2FWireMock-stateful-api-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TesterTech%2FWireMock-stateful-api-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TesterTech","download_url":"https://codeload.github.com/TesterTech/WireMock-stateful-api-testing/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245785713,"owners_count":20671631,"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":[],"created_at":"2024-12-05T16:17:02.420Z","updated_at":"2025-03-27T04:41:43.178Z","avatar_url":"https://github.com/TesterTech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WireMock-stateful-api-testing\nWireMock and Rest-Assured for stateful API testing\n\n## WireMock standalone\nThis script makes use of wiremock standalone jar\n- To record start WireMock standalone the following way\n```shell\njava -jar wiremock-jre8-standalone-\u003cversion\u003e.jar --port \u003c7777\u003e \\\n  --proxy-all=\"http://\u003cproxy address\u003e:\u003cport\u003e\" \\\n  --record-mappings \\ \n  --verbose \n```\n\n## Mappings\n- Make the mapping by putting your request/responsemappings in the mappings.json file in the mappings dir\n- Remember to restart once new mappings have been added. \n- The mappings used in the video [can be found here](./mapping-example.json)\n\n## State\n- State can be setup in the mappings, can be called using ```__admin/scenarios```\n\n## Rest Client (desktop)\n- Using [insomnia rest client](https://insomnia.rest/) as a rest client\n- This is mainly used to setup and play around with the Backend JAVA API\n\n## Application\n- Todo Backend applications [more info here](https://todobackend.com/) \n- The specific one I used was [this one] which used Javalin (https://github.com/johanvogelzang/todo-backend)\n\n# References \n- https://wiremock.org/docs/stateful-behaviour/\n- https://wiremock.org/docs/record-playback/\n- \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestertech%2Fwiremock-stateful-api-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestertech%2Fwiremock-stateful-api-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestertech%2Fwiremock-stateful-api-testing/lists"}