{"id":20618689,"url":"https://github.com/wiremock-net/wiremockinspector","last_synced_at":"2025-04-15T11:42:50.962Z","repository":{"id":152905150,"uuid":"626258988","full_name":"WireMock-Net/WireMockInspector","owner":"WireMock-Net","description":"WireMockInspector is a cross platform UI app that facilitates WireMock troubleshooting.","archived":false,"fork":false,"pushed_at":"2024-01-24T17:43:04.000Z","size":6549,"stargazers_count":29,"open_issues_count":3,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-04-26T10:03:25.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WireMock-Net.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-04-11T05:39:38.000Z","updated_at":"2024-07-31T20:40:34.749Z","dependencies_parsed_at":"2023-09-28T02:29:15.621Z","dependency_job_id":"c065c429-2f99-4b63-9b35-8d0dd5fefc66","html_url":"https://github.com/WireMock-Net/WireMockInspector","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WireMock-Net%2FWireMockInspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WireMock-Net%2FWireMockInspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WireMock-Net%2FWireMockInspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WireMock-Net%2FWireMockInspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WireMock-Net","download_url":"https://codeload.github.com/WireMock-Net/WireMockInspector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249063707,"owners_count":21206954,"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-11-16T12:09:11.240Z","updated_at":"2025-04-15T11:42:50.942Z","avatar_url":"https://github.com/WireMock-Net.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WireMockInspector\n\nWireMockInspect is a cross-platform UI app that facilitates [WireMock](https://wiremock.org/) troubleshooting.\n\n![](logo.jpg)\n\n## How to install\n\nWireMockInspector is distributed as `dotnet tool` so it can be easily installed on `Windows/MacOS/Linux` with the following command\n\n```\ndotnet tool install WireMockInspector --global --no-cache --ignore-failed-sources --add-source https://api.nuget.org/v3/index.json\n```\n\nAfter installation, you can easily run the app by executing `wiremockinspector` command.\n\n## How to update\n\n```\ndotnet tool update WireMockInspector --global --no-cache --ignore-failed-sources --add-source https://api.nuget.org/v3/index.json\n```\n\n## Features\n- Presents a list of requests received by `WireMock` server.\n- Combines request data with associated mapping.\n- Presents a list of all available mappings with the definition\n- Generate C# code for defining selected mappings\n- WireMockServer settings editor\n- Presents a list of all available scenarios along the details\n- Visualise Scenario flow and current state\n\n![](wiremock_basic_features.gif)\n\n\n## Using WireMockInspector from test code\n\n1. Install [WireMockInspector](https://github.com/WireMock-Net/WireMockInspector) dotnet tool\n\n\t```shell\n\tdotnet tool install WireMockInspector --global --no-cache --ignore-failed-sources\n\t```\n\n2. Install `WireMock.Net.Extensions.WireMockInspector` nuget packet to your test project\n3. Example usage in the code\n\n\t```cs\n\tusing var wireMock = WireMockServer.Start(new WireMockServerSettings()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tStartAdminInterface = true,\n\t\t\t\t\t\t\tPort = 9095\n\t\t\t\t\t\t});\n\n\t// Call Inspect() run WireMockInspect and attach it to the current WireMockServer instance\n\twireMock.Inspect();\n\t```\n\tIf you don't have an access to WireMockServer instance then you can call the extension method directly:\n\t```cs\n\tWireMockServerExtensions.Inspect(\"http://localhost:9095\");\n\t```\n\n\n## Code generator\n\nWireMockInspect offers two methods for generating C# code to create mappings, which is particularly useful when used in conjunction with the [WireMock.NET proxy](https://github.com/WireMock-Net/WireMock.Net/wiki/Proxying) feature. The first method is accessible via the 'Code' tab for a selected mapping. Here, you can view the code provided by the endpoint http://localhost:9095/__admin/mappings/code/MAPPING_GUID:\n\n![](mapping_code_generator.gif)\n\nThe second method involves using the 'Code' tab for a selected request.\n\n![](request_code_generator.png)\n\nThis approach employs a completely different mechanism for code generation. You can customize the generated code by using a custom liquid template:\n\n1) Download the [default template](https://github.com/WireMock-Net/WireMockInspector/blob/main/src/WireMockInspector/CodeGenerators/default_template.liquid) and save it to your directory at `%LOCALAPPDATA%\\WireMockInspector\\templates\\` .\n2) Rename the file appropiately to reflect its purpose\n3) Modify the template according to your requirements.\n3) In the WireMockInspector, under the 'Show Options' section on the 'Code' tab, select your customized template from combo box.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremock-net%2Fwiremockinspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremock-net%2Fwiremockinspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremock-net%2Fwiremockinspector/lists"}