{"id":20147591,"url":"https://github.com/nicobistolfi/mockthis-cli","last_synced_at":"2026-01-04T17:50:29.068Z","repository":{"id":257627635,"uuid":"853982589","full_name":"nicobistolfi/mockthis-cli","owner":"nicobistolfi","description":"MockThis is a command-line interface (CLI) tool for managing mock API endpoints. It allows users to create, update, delete, and list mock endpoints for testing and development purposes.","archived":false,"fork":false,"pushed_at":"2025-03-13T01:12:31.000Z","size":113,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T21:35:44.598Z","etag":null,"topics":["golang","mock-api","mock-server"],"latest_commit_sha":null,"homepage":"https://mockthis.io","language":"Go","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/nicobistolfi.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":"2024-09-08T04:32:13.000Z","updated_at":"2024-09-22T20:53:05.000Z","dependencies_parsed_at":"2024-09-17T20:53:02.421Z","dependency_job_id":"2ac6a6a9-5d9b-46ff-8b9c-77503f06cfb7","html_url":"https://github.com/nicobistolfi/mockthis-cli","commit_stats":null,"previous_names":["nicobistolfi/mockthis-cli"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicobistolfi%2Fmockthis-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicobistolfi%2Fmockthis-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicobistolfi%2Fmockthis-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicobistolfi%2Fmockthis-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicobistolfi","download_url":"https://codeload.github.com/nicobistolfi/mockthis-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252765061,"owners_count":21800791,"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":["golang","mock-api","mock-server"],"created_at":"2024-11-13T22:29:48.208Z","updated_at":"2026-01-04T17:50:29.028Z","avatar_url":"https://github.com/nicobistolfi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MockThis CLI\n\n![Version](https://img.shields.io/github/v/release/nicobistolfi/mockthis-cli.svg)\n[![Go Reference](https://pkg.go.dev/badge/github.com/nicobistolfi/mockthis-cli.svg)](https://pkg.go.dev/github.com/nicobistolfi/mockthis-cli)\n[![Go Report Card](https://goreportcard.com/badge/github.com/nicobistolfi/mockthis-cli?v=1)](https://goreportcard.com/report/github.com/nicobistolfi/mockthis-cli)\n[![Documentation](https://img.shields.io/badge/documentation-yes-blue.svg)](https://docs.mockthis.io/)\n![License](https://img.shields.io/badge/license-MIT-green.svg)\n[![Author](https://img.shields.io/badge/author-%40nicobistolfi-blue.svg)](https://github.com/nicobistolfi)\n\n![Build And Test](https://github.com/nicobistolfi/mockthis-cli/actions/workflows/go.yml/badge.svg)\n![Release](https://github.com/nicobistolfi/mockthis-cli/actions/workflows/release.yml/badge.svg)\n\nMockThis is a command-line interface (CLI) tool for managing publicly available mock API endpoints. It allows users to create, update, delete, and list mock endpoints for testing and development purposes.\n\n## Key Features\n\n- User authentication (login and registration)\n- Create new mock endpoints\n- Delete endpoints\n- List all created endpoints\n- Get details of specific endpoints\n\n## Installation\n\n### macOS\n\nTo install MockThis on macOS using Homebrew, follow these steps:\n\n1. First, tap the repository:\n   ```\n   brew tap nicobistolfi/carbon\n   ```\n\n2. Then, install MockThis:\n   ```\n   brew install mockthis\n   ```\n\n## Usage\n\nThe general syntax for using MockThis is:\n\n```\nmockthis [command] [flags]\n```\n\n### Available Commands\n\n- `create`: Create a new mock endpoint\n- `delete`: Remove an endpoint\n- `list`: Display all created endpoints\n- `get`: Retrieve details of a specific endpoint\n- `login`: Authenticate user\n- `register`: Create a new user account\n- `completion`: Generate shell autocompletion scripts\n\nFor detailed information on each command, use:\n\n```\nmockthis [command] --help\n```\n\n### Registering a new user\n\nTo register a new user account, use the register command. You can provide your email as an argument or enter it when prompted.\n\n```\nmockthis register\n```\n\n### Logging in\n\nTo log in to MockThis, use the login command. You can either provide your email as an argument or enter it when prompted.\n\n```\nmockthis login {email}\n```\nIf you don't provide an email, you will be prompted to enter it.\n\n\n### Creating a new endpoint\n\nTo create a new mock endpoint, use the create command. You can provide the endpoint details as arguments or enter them when prompted.\n\n```\nmockthis create -m GET -s 200 -b '{\"message\": \"Hello, World!\"}'\n```\nComand line output will include the endpoint details, such as the method, status, body, and path.\n\n```\nEndpoint created successfully!\nMock URL: https://api.mockthis.io/m/c35f0f6-af9d-4976-8ff9-d45e1dee8832\n\n| Field               | Value                                |\n+---------------------+--------------------------------------+\n| ID                  | c35f0f6-af9d-4976-8ff9-d45e1dee8832  |\n| Method              | GET                                  |\n| Status          | 200                                  |\n| ResponseContentType | application/json                     |\n| ResponseBody        | {\"message\": \"Hello, World!\"}         |\n| CreatedAt           | 2024-09-17T02:29:45Z                 |\n| Charset             | UTF-8                                |\n```\n\n## Roadmap\nThe roadmap may change witouth notice.\n\n- Include JSON schema and validate schema for endpoint creation using `—file`\n- Enable `mockthis update` to update already existing endpoints\n- Update `mockthis get` to use the get endpoint instead of list\n- Allow the use of `—schema` to ensure the response body matches the schema\n- Allow the use of `—request-schema` to ensure the request body matches the schema\n- Implement header `X-Mock-Dynamic: true` in the request and use the schema to generate a dynamic response\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicobistolfi%2Fmockthis-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicobistolfi%2Fmockthis-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicobistolfi%2Fmockthis-cli/lists"}