# Wiremock

**Wiremock** - это библиотека для заглушек и имитации веб-сервисов. Он создает HTTP-сервер, к которому мы можем подключиться так же, как к реальному веб-сервису. Когда сервер WireMock работает, мы можем настроить ожидания, вызвать службу и затем проверить ее поведение.

WireMock освобождает вас от использования нестабильных API и позволяет вам уверенно развиваться. Вы можете запустить "фиктивный сервер" API и смоделировать множество реальных сценариев и API, включая REST, SOAP, OAuth2 и другие.

Есть аналог: <https://mockoon.com/>\
Mockoon — это самый простой и быстрый способ разработки и запуска фиктивных REST API.\
Без удаленного развертывания, без учетной записи, **бесплатно** и с **открытым исходным кодом**

<details>

<summary>Дополнительный материал</summary>

* [WireMock – швейцарский нож в арсенале тестировщика. Часть 1](https://habr.com/ru/company/rostelecom/blog/679276/)
* [WireMock – швейцарский нож в арсенале тестировщика. Часть 2](https://habr.com/ru/company/rostelecom/blog/679330/)
* [Mockoon](https://habr.com/ru/post/709122/)

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qabook.gitbook.io/start/instrumentarii/programmy/wiremock.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
