{"id":50501027,"url":"https://github.com/sadabnepal/mountebank-api-mock","last_synced_at":"2026-06-02T11:31:15.987Z","repository":{"id":227370183,"uuid":"769918625","full_name":"sadabnepal/mountebank-api-mock","owner":"sadabnepal","description":"Service virtualization example using Mountebank to mock REST APIs and simulate backend services for testing and development.","archived":false,"fork":false,"pushed_at":"2026-03-24T10:32:02.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-25T13:09:52.610Z","etag":null,"topics":["api-mock","api-mocking","api-testing","mock","mock-server","mountebank","service-virtualization","stub","stubs","testing-tools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sadabnepal.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-10T12:39:26.000Z","updated_at":"2026-03-24T10:32:06.000Z","dependencies_parsed_at":"2024-03-16T11:51:17.871Z","dependency_job_id":"6171dd4e-1e19-4ede-ae75-8ffc4a5ca83c","html_url":"https://github.com/sadabnepal/mountebank-api-mock","commit_stats":null,"previous_names":["sadabnepal/mountebank-service-virtualization","sadabnepal/mountebank-api-mock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sadabnepal/mountebank-api-mock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fmountebank-api-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fmountebank-api-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fmountebank-api-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fmountebank-api-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sadabnepal","download_url":"https://codeload.github.com/sadabnepal/mountebank-api-mock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadabnepal%2Fmountebank-api-mock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33820642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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":["api-mock","api-mocking","api-testing","mock","mock-server","mountebank","service-virtualization","stub","stubs","testing-tools"],"created_at":"2026-06-02T11:31:15.287Z","updated_at":"2026-06-02T11:31:15.972Z","avatar_url":"https://github.com/sadabnepal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# service virtualization using mountebank\n\n### getting started\n```bash\ngit clone https://github.com/sadabnepal/mountebank-api-mock.git \u0026\u0026\ncd mountebank-api-mock\n```\n\n### pre-requisite\n[![NodeJs](https://img.shields.io/badge/-NodeJS-%23339933?logo=npm)](https://nodejs.org/en/download/)\n\n### install package\n```\nnpm install\n```\n\n### start stub\n```\nnpm start\n```\n\n### stub details\nThe project is using [mountebank](http://www.mbtest.org) as a service virtualization tool, which provides following endpoints.\n```\nBase URL: http://localhost:4545/api \n```\n\n| http call   | endpoint               | status code | payload   |\n|-------------|------------------------|-------------|-----------|\n| GET         | `/users/{id}`          | 200         | N/A       |\n| GET         | `/users?page={number}` | 200         | N/A       |\n| POST        | `/users`               | 201         | `{\"name\": \"sadab\", \"job\": \"tester\" }`|\n| PUT         | `/users/{id}`          | 200         | `{\"name\": \"saqib\", \"job\": \"admin\" }` |\n| POST        | `/register`            | 200         | `{\"email\": \"test@test.com\", \"password\": \"test@123\" }` |\n| POST        | `/login`               | 200         | `{\"email\": \"test@test.com\", \"password\": \"test@123\" }` |\n\nNote: default response will be empty object `{}` with response code: `404`\n\n\nOther Mocking libraries:\n - https://mswjs.io/\n - https://github.com/nock/nock","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadabnepal%2Fmountebank-api-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadabnepal%2Fmountebank-api-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadabnepal%2Fmountebank-api-mock/lists"}