{"id":46858119,"url":"https://github.com/kkentzo/mockit","last_synced_at":"2026-03-10T17:40:16.254Z","repository":{"id":64304463,"uuid":"115532550","full_name":"kkentzo/mockit","owner":"kkentzo","description":"A development tool to quickly mock various aspects of an http endpoint using the command-line","archived":false,"fork":false,"pushed_at":"2018-08-04T08:05:12.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T11:13:34.278Z","etag":null,"topics":["developer-tools","http","mock"],"latest_commit_sha":null,"homepage":"","language":"Go","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/kkentzo.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}},"created_at":"2017-12-27T15:11:00.000Z","updated_at":"2024-06-20T11:13:34.279Z","dependencies_parsed_at":"2023-01-15T10:15:47.493Z","dependency_job_id":null,"html_url":"https://github.com/kkentzo/mockit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/kkentzo/mockit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkentzo%2Fmockit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkentzo%2Fmockit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkentzo%2Fmockit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkentzo%2Fmockit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkentzo","download_url":"https://codeload.github.com/kkentzo/mockit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkentzo%2Fmockit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30344995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["developer-tools","http","mock"],"created_at":"2026-03-10T17:40:15.552Z","updated_at":"2026-03-10T17:40:16.218Z","avatar_url":"https://github.com/kkentzo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Travis Build Status](https://travis-ci.org/kkentzo/mockit.svg?branch=master)](https://travis-ci.org/kkentzo/mockit)\n\n# mockit\n\n`mockit` is a command-line utility to quickly mock various aspects of\nan http endpoint using a real http server for development\npurposes. `mockit` can be used during the development of applications\nthat consume external http services in order to test the application's\nbehaviour under various conditions (invalid responses, increased\nlatencies, various status codes) without the need to actually call\nthese services.\n\n`mockit` is intentionally dead simple, its main objective being the\nquick mocking of an http endpoint using the command line. There exist\n[numerous](https://github.com/iridakos/duckrails)\n[other](https://github.com/gencebay/httplive)\n[programs](https://github.com/jamesdbloom/mockserver) that offer far\nmore sophisticated features - feel free to check them out if you have\nmore advanced requirements.\n\nYou can start using `mockit` by\n[grabbing](https://github.com/kkentzo/mockit/releases) and running the\nbinary that corresponds to your platform (linux, macOS and windows).\n\nIf you have a working Go environment and want to see/play with the\nsource code, you can also `go get github.com/kkentzo/mockit`.\n\n## Usage\n\n`mockit` works by defining one or more endpoints each characterized by\nthe certain properties. A single endpoint can be specified using the\ncommand line using the following arguments:\n\n* URI path (e.g. `-uri /a/random/path`)\n* requested HTTP method (e.g. `-method POST`)\n* status code of the response (e.g. `-status 401`)\n* payload of the response (e.g. `-body hello`)\n* latency of the response (e.g. `-latency 2s`)\n* response headers (comma-separated, e.g. `-headers\n  foo:bar,content-type:application/json`)\n\nThe port to which the server binds can be specified using `-port`\n(e.g. `-port 8888`). The default value is 9999.\n\nMultiple endpoints on the same port are supported through a `yml`\nconfiguration file (see example [here](sample.yml)). The configuration\nfile path can be passed to `mockit` using the `-config PATH_TO_FILE`\nargument.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkentzo%2Fmockit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkentzo%2Fmockit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkentzo%2Fmockit/lists"}