{"repo":"smocker-dev/smocker","free":true,"listed":false,"github":"https://github.com/smocker-dev/smocker","clone":"git clone https://github.com/smocker-dev/smocker.git","description":"Smocker is a simple and efficient HTTP mock server and proxy","language":"TypeScript","stars":1284,"topics":["mock-server","go","integration-testing","test","mock","api","react","typescript","functional-testing","proxy"],"license":"MIT","category":"networking-infra","readme_excerpt":"Smocker (server mock) is a simple and efficient HTTP mock server. The documentation is available on smocker.dev. Table of contents - Installation - With Docker - Manual Deployment - Healthcheck - User Interface - Usage - Hello, World! - Mock format schema - Development - Backend - Frontend - Docker - Caddy - HTTPS - Authors - Contributors Installation With Docker Manual Deployment Healthcheck User Interface Smocker exposes a configuration user interface. You can access it in your web browser on http://localhost:8081/. Usage Smocker exposes two ports: - 8080 is the mock server port. It will expose the routes you register through the configuration port - 8081 is the configuration port. It's the port you will use to register new mocks. This port also exposes a user interface. Hello, World! To register a mock, you can use the YAML and the JSON formats. A basic mock might look like this: You can then register it to the configuration server with the following command: After your mock is registered, you can query the mock server on the specified route, so that it returns the expected response to you: To cleanup the mock server without restarting it, you can execute the following command: For more advanced usage, please read the project's documentation. Mock format schema A JSON Schema describing the mock format lives at docs/mock.schema.json . It is generated from and kept in sync with the Go types ( server/types ): the example mocks under tests/data are validated against it in CI, ","default_branch":null,"files":null,"tree":[],"storefront":"/r/smocker-dev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/smocker-dev/smocker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}