{"id":18875818,"url":"https://github.com/wiremock/wiremock-extension-template","last_synced_at":"2025-08-02T08:35:58.410Z","repository":{"id":201244254,"uuid":"702382250","full_name":"wiremock/wiremock-extension-template","owner":"wiremock","description":"A template project for those who want to create a new WireMock extension/plugin","archived":false,"fork":false,"pushed_at":"2024-01-12T20:09:31.000Z","size":77,"stargazers_count":6,"open_issues_count":7,"forks_count":1,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-04-14T17:56:22.060Z","etag":null,"topics":["hacktoberfest","template","wiremock","wiremock-extension"],"latest_commit_sha":null,"homepage":"https://wiremock.org/docs/extending-wiremock/","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/wiremock.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,"zenodo":null}},"created_at":"2023-10-09T08:06:36.000Z","updated_at":"2025-03-04T17:39:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"8f0bb7bd-18b2-4daa-af08-d2920ae6dade","html_url":"https://github.com/wiremock/wiremock-extension-template","commit_stats":null,"previous_names":["wiremock/wiremock-extension-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/wiremock/wiremock-extension-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-extension-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-extension-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-extension-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-extension-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremock","download_url":"https://codeload.github.com/wiremock/wiremock-extension-template/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremock%2Fwiremock-extension-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268355775,"owners_count":24237368,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hacktoberfest","template","wiremock","wiremock-extension"],"created_at":"2024-11-08T06:09:17.167Z","updated_at":"2025-08-02T08:35:58.364Z","avatar_url":"https://github.com/wiremock.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WireMock extension template\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://wiremock.org\" target=\"_blank\"\u003e\n        \u003cimg width=\"512px\" src=\"https://wiremock.org/images/logos/wiremock/logo_wide.svg\" alt=\"WireMock Logo\"/\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nTemplate for creating new WireMock extensions.\n\n# Template usage\n\nThis template contains various samples on how you can write your own extension - just clone it and get started.\n\nNot all parts are needed, thus feel free to adapt it. The code is documented and marked with `TODO` comments to help\nfinding customization points.\n\n# Manuals\n\n## Overall extension documentation\n\nExtensions can be explicitly configured or auto-detected. This extension supports auto-detection which eases integration\nin [WireMock standalone](https://wiremock.org/docs/standalone/java-jar/) or [docker containers](https://wiremock.org/docs/standalone/docker/).\n\nFor supporting auto-detection as standalone library, this template implements the\n[Java Service Provider Interface](https://docs.oracle.com/javase/tutorial/sound/SPI-intro.html), which is used by WireMock\nto find extensions and packages everything using shadowjar.\n\nWhen forking this repository, you have to adapt `shadowjar/resources/META-INF/services/com.github.tomakehurst.wiremock.extension.ExtensionFactory`\nto point to a class with default constructor which registers all parts of your extension\n(in this template, this is handled by `org.wiremock.extensions.template.StandaloneTemplateExtension`).\n\nFor non-standalone usages, you can use your own class to instantiate your extension. In this template,\nthis is handled by `org.wiremock.extensions.template.TemplateExtension`. Having the standalone version using this one\nhelps ensuring a consistent extension setup.\n\n## Request matcher\n\nOfficial documentation on using request matchers: https://wiremock.org/docs/request-matching/\nOfficial documentation on creating request matchers extension: https://wiremock.org/docs/extensibility/custom-matching/\n\nThe sample code in this template shows how to read parameters and values which contain [handlebar templates](https://handlebarsjs.com)\nto get similar functionalities as when using them in [response templates](https://wiremock.org/docs/response-templating/).\n\nSee `org.wiremock.extensions.template.extensions.RequestMatcher` for a sample and `org.wiremock.extensions.template.RequestMatcherTest`\nfor a corresponding test.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremock%2Fwiremock-extension-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremock%2Fwiremock-extension-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremock%2Fwiremock-extension-template/lists"}