{"id":28028893,"url":"https://github.com/itvincent-git/mockdata","last_synced_at":"2026-01-23T22:08:20.730Z","repository":{"id":221123936,"uuid":"753507397","full_name":"itvincent-git/mockdata","owner":"itvincent-git","description":"Mock data ~ [todo list]","archived":false,"fork":false,"pushed_at":"2024-08-29T07:39:20.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-05-11T07:34:35.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/itvincent-git.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}},"created_at":"2024-02-06T09:05:51.000Z","updated_at":"2024-08-29T07:39:23.000Z","dependencies_parsed_at":"2024-02-06T10:29:10.413Z","dependency_job_id":"1f5b1961-10ac-49eb-8113-ad2d82c6e58d","html_url":"https://github.com/itvincent-git/mockdata","commit_stats":null,"previous_names":["itvincent-git/mockdata"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itvincent-git/mockdata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fmockdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fmockdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fmockdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fmockdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itvincent-git","download_url":"https://codeload.github.com/itvincent-git/mockdata/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itvincent-git%2Fmockdata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28700993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2025-05-11T07:33:30.318Z","updated_at":"2026-01-23T22:08:20.715Z","avatar_url":"https://github.com/itvincent-git.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Install\n\n```shell\nnpm install json-server\n```\n\n# Try\n\nPass it to JSON Server CLI\n\n```shell\n$ npx json-server db.json\n```\n\nGet a REST API\n\n```shell\n$ curl http://localhost:3000/todos/1\n{\n  \"id\": \"1\",\n  \"task_name\": \"penatibus et magnis\",\n   ...\n}\n```\n\n# Home Page\n\nOpen in browser : [localhost:3000](http://localhost:3000/)\n\n# Query\n\n## Routes\n\nBased on the example `db.json`, you'll get the following routes:\n\n```\nGET /posts\n\nGET /posts/:id\n\nPOST /posts\n\nPUT /posts/:id\n\nPATCH /posts/:id\n\nDELETE /posts/:id\n\n\n\n# Same for comments\n```\n\n```\nGET /profile\n\nPUT /profile\n\nPATCH /profile\n```\n\n## Params\n\n### Conditions\n\n- ` ` → `==`\n\n- `lt` → `\u003c`\n\n- `lte` → `\u003c=`\n\n- `gt` → `\u003e`\n\n- `gte` → `\u003e=`\n\n- `ne` → `!=`\n\n```\nGET /posts?views_gt=9000\n```\n\n### Range\n\n- `start`\n\n- `end`\n\n- `limit`\n\n```\nGET /posts?_start=10\u0026_end=20\n\nGET /posts?_start=10\u0026_limit=10\n```\n\n### Paginate\n\n- `page`\n\n- `per_page` (default = 10)\n\n```\nGET /posts?_page=1\u0026_per_page=25\n```\n\n### Sort\n\n- `_sort=f1,f2`\n\n```\nGET /posts?_sort=id,-views\n```\n\n### Nested and array fields\n\n- `x.y.z...`\n\n- `x.y.z[i]...`\n\n```\nGET /foo?a.b=bar\n\nGET /foo?x.y_lt=100\n\nGET /foo?arr[0]=bar\n```\n\n### Embed\n\n```\nGET /posts?_embed=comments\n\nGET /comments?_embed=post\n```\n\n## Delete\n\n```\nDELETE /posts/1\n\nDELETE /posts/1?_dependent=comments\n```\n\n## Serving static files\n\nIf you create a `./public` directory, JSON Serve will serve its content in addition to the REST API.\n\nYou can also add custom directories using `-s/--static` option.\n\n```sh\njson-server -s ./static\n\njson-server -s ./static -s ./node_modules\n```\n\n# Thanks for\n\n[typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously)](https://github.com/typicode/json-server/tree/main)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitvincent-git%2Fmockdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitvincent-git%2Fmockdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitvincent-git%2Fmockdata/lists"}