{"id":24493087,"url":"https://github.com/open-node/rmock","last_synced_at":"2025-03-15T03:30:00.385Z","repository":{"id":74486795,"uuid":"48739187","full_name":"open-node/rmock","owner":"open-node","description":null,"archived":false,"fork":false,"pushed_at":"2015-12-30T00:49:55.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-14T07:29:23.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/open-node.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":"2015-12-29T09:19:24.000Z","updated_at":"2024-04-14T07:29:23.936Z","dependencies_parsed_at":"2023-03-16T14:10:42.908Z","dependency_job_id":null,"html_url":"https://github.com/open-node/rmock","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"d6773fc590a2508a08013a3ff919e5414cbcf06e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Frmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Frmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Frmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-node%2Frmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-node","download_url":"https://codeload.github.com/open-node/rmock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243680970,"owners_count":20330152,"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":[],"created_at":"2025-01-21T19:19:03.689Z","updated_at":"2025-03-15T03:30:00.358Z","avatar_url":"https://github.com/open-node.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RestAPI mock\n\n## Quick start\n\n* installation\n\u003cpre\u003enpm install rmock --save-dev\u003c/pre\u003e\n\n* useage\n\u003cpre\u003e\nvar rmock = require('rmock');\nrmock.add(collctionRoutePath, modelRoutePath, initData)\nrmock.add(routePath, initData)\nrmock.add(routePath)\n\u003c/pre\u003e\n\n* examples\n\u003cpre\u003e\nvar rmock = require('rmock');\nrmock.add('/users', []);\n//GET/POST: /users\n//GET/PUT/DELETE: /users/:id\n\nrmock.add('/users/:userId/books', '/users/books', [{\n  id: 1,\n  userId: 32,\n  name: 'Javascript 权威指南'\n}])\n// GET/POST: /users/:userId/books\n// GET/PUT/DELETE: /users/books/:id\n\nrmock.add('/users/:userId/books', [{\n  id: 1,\n  userId: 32,\n  name: 'Javascript 权威指南'\n}])\n// GET/POST: /users/:userId/books\n// GET/PUT/DELETE: /users/:userId/books/:id\n\n// start mock server\nrmock.start([ip], [port])\n\u003c/pre\u003e\n\n* Dont support cluster mode, beause data is stored in memory variable\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-node%2Frmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-node%2Frmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-node%2Frmock/lists"}