{"id":15527272,"url":"https://github.com/scionoftech/fast-json-server","last_synced_at":"2026-05-05T17:33:16.054Z","repository":{"id":57428620,"uuid":"436333441","full_name":"scionoftech/fast-json-server","owner":"scionoftech","description":"fast-json-server provides a full REST API / GraphQL Server with zero coding in few seconds.","archived":false,"fork":false,"pushed_at":"2021-12-08T17:31:01.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-20T14:09:18.882Z","etag":null,"topics":["fastapi","graphql","json-api","json-server","jsonapi","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Python","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/scionoftech.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}},"created_at":"2021-12-08T17:26:06.000Z","updated_at":"2021-12-09T06:11:13.000Z","dependencies_parsed_at":"2022-09-02T17:23:08.762Z","dependency_job_id":null,"html_url":"https://github.com/scionoftech/fast-json-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scionoftech/fast-json-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2Ffast-json-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2Ffast-json-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2Ffast-json-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2Ffast-json-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scionoftech","download_url":"https://codeload.github.com/scionoftech/fast-json-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scionoftech%2Ffast-json-server/sbom","scorecard":{"id":804846,"data":{"date":"2025-08-11","repo":{"name":"github.com/scionoftech/fast-json-server","commit":"8cd8d06cfeb60a11222801e267dbc81b807a63c2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":6,"reason":"binaries present in source code","details":["Warn: binary detected: fast_json_server/__pycache__/__init__.cpython-37.pyc:1","Warn: binary detected: fast_json_server/__pycache__/graph_ql.cpython-37.pyc:1","Warn: binary detected: fast_json_server/__pycache__/json_server.cpython-37.pyc:1","Warn: binary detected: fast_json_server/__pycache__/rest_api.cpython-37.pyc:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/2 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-100 / GHSA-8h2j-cgx8-6xv7","Warn: Project is vulnerable to: PYSEC-2024-38 / GHSA-2jv5-9r88-3w3p","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: GHSA-59g5-xgcq-4qw3","Warn: Project is vulnerable to: PYSEC-2020-150 / GHSA-33c7-2mpw-hg34","Warn: Project is vulnerable to: PYSEC-2020-151 / GHSA-f97h-2pfx-f59f"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T11:29:26.566Z","repository_id":57428620,"created_at":"2025-08-23T11:29:26.566Z","updated_at":"2025-08-23T11:29:26.566Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32660342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["fastapi","graphql","json-api","json-server","jsonapi","rest-api"],"created_at":"2024-10-02T11:05:20.332Z","updated_at":"2026-05-05T17:33:16.036Z","avatar_url":"https://github.com/scionoftech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[fast-json-server v0.0.1](https://pypi.org/project/fast-json-server/)\n\n**fast-json-server** provides a full **REST API / GraphQL** Server with zero\ncoding in few seconds.\n\nfast-json-server provides a simple and quick back-end for development.\n\nfast-json-server only requires json data.\n\n## Installation\n\n```shell\n$ pip install fast-json-server\n```\n\n## How to use\n\nCreate individual json files with some data in a folder\n\n**Note:** json objects must contain **id** key.\n\n#### /sample_data/users.json\n\n```json\n\n[\n  {\n    \"id\": 1,\n    \"first_name\": \"Sampath\",\n    \"last_name\": \"Varma\"\n  },\n  {\n    \"id\": 2,\n    \"first_name\": \"Virat\",\n    \"last_name\": \"Ranbhor\"\n  },\n  {\n    \"id\": 3,\n    \"first_name\": \"Rakesh\",\n    \"last_name\": \"Chopra\"\n  }\n]\n\n```\n\n#### /sample_data/articles.json\n\n```json\n\n[\n  {\n    \"id\": 1,\n    \"title\": \"Article1\",\n    \"content\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore, et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n    \"likes\": 20,\n    \"created_date\": \"11/30/2021\",\n    \"author_id\": 3\n  },\n  {\n    \"id\": 2,\n    \"title\": \"Article2\",\n    \"content\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n    \"likes\": 20,\n    \"created_date\": \"11/30/2021\",\n    \"author_id\": 2\n  },\n  {\n    \"id\": 3,\n    \"title\": \"Article3\",\n    \"content\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\",\n    \"likes\": 20,\n    \"created_date\": \"11/30/2021\",\n    \"author_id\": 2\n  }\n]\n\n```\n\n### Start Fast-JSON-Server\n\nfast-json-server supports REST API and GraphQL\n\n```shell\npython -m fast_json_server.json_server --data_path=\"/sample_data\" --host=\"0.0.0.0\" --port=3000 --log_level=\"debug\" --server_type=\"rest_api\"\n# or\npython -m fast_json_server.json_server --data_path=\"/sample_data\" --host=\"0.0.0.0\" --port=3001 --log_level=\"debug\" --server_type=\"graph_ql\" \n```\n\nor\n\n```python\nfrom fast_json_server.json_server import start_server\n\nstart_server(data_path=\"/sample_data\", host=\"0.0.0.0\", port=3000,\n             log_level='debug', server_type=\"rest_api\")\n# or\nstart_server(data_path=\"/sample_data\", host=\"0.0.0.0\", port=3000,\n             log_level='debug', server_type=\"graph_ql\")\n```\n\n## REST API Server\n\nfast-json-server creates GET,POST,PUT,DELETE Routes from json files content.\n\n### User routes\n\n```\nGET    /api/v1/users?page_num=1\u0026page_size=5\nGET    /api/v1/users?id=\u0026first_name=\u0026last_name=\nPOST   /users\nPUT    /users/1\nDELETE /users/1\n```\n\n### Article routes\n\n```\nGET    /api/v1/articles?page_num=1\u0026page_size=5\nGET    /api/v1/articles?id=\u0026title=\u0026content=\u0026likes\u0026author_id=\nPOST   /articles\nPUT    /articles/1\nDELETE /articles/1\n```\n\nExample GET Request\n\n```shell\ncurl --location --request GET 'http://localhost:3000/api/v1/users?page_num=1\u0026page_size=5'\n```\n\nExample GET Response\n\n```json\n{\n  \"total_pages\": 1,\n  \"total_items\": 9,\n  \"page_data\": {\n    \"page_num\": 1,\n    \"item_count\": 5,\n    \"items\": [\n      {\n        \"id\": 2,\n        \"first_name\": \"Sampath\",\n        \"last_name\": \"Varma\"\n      },\n      {\n        \"id\": 3,\n        \"first_name\": \"Virat\",\n        \"last_name\": \"Ranbhor\"\n      },\n      {\n        \"id\": 4,\n        \"first_name\": \"Rakesh\",\n        \"last_name\": \"Chopra\"\n      },\n      {\n        \"id\": 5,\n        \"first_name\": \"Jimmy\",\n        \"last_name\": \"Kapoor\"\n      },\n      {\n        \"id\": 6,\n        \"first_name\": \"Satya\",\n        \"last_name\": \"Ellapragada\"\n      }\n    ]\n  }\n}\n```\n\nfast-json-api provides interactive swagger api docs\n\n```\n/api/v1/docs\n```\n\n## GraphQL\n\nfast-json-server creates the Query and Mutations from json files content.\n\nGraphQL endpoint **/api/v1/graphql**\n\n### User Query\n\n```shell\n# User data pagination\n{\n\tusers(pageSize:3,pageNum:1){\n        totalPages,\n        totalItems,\n        pageData{\n            pageNum,\n            itemCount,\n            items{\n                firstName,\n                lastName\n            }\n        },\n    }\n}\n# User data with filter\n{\n\tusers(pageSize:3,pageNum:1,firstName:\"Virat\"){\n        totalPages,\n        totalItems,\n        pageData{\n            pageNum,\n            itemCount,\n            items{\n                firstName,\n                lastName\n            }\n        },\n    }\n}\n```\n\n### User Mutations\n\n```shell\n# create a record\nmutation {\n  createUsers(createRecord:{firstName:\"Mohan\",lastName:\"Kumar\"}) {\n    message\n    id\n  }    \n}\n# update a record\nmutation {\n  updateUsers(id:10,updateRecord:{firstName:\"Mohan\",lastName:\"Chandra\"}) {\n    message\n  }    \n}\n# delete a record\nmutation {\n  deleteUsers(id:10) {\n    message\n  }    \n}\n```\n\n### Article Query\n\n```shell\n# Articles data pagination\n{\n\tarticles(pageSize:3,pageNum:1){\n        totalPages,\n        totalItems,\n        pageData{\n            pageNum,\n            itemCount,\n            items{\n                firstName,\n                lastName\n            }\n        },\n    }\n}\n# Articles data with filter\n{\n\tarticles(pageSize:3,pageNum:1,title:\"Article3\"){\n        totalPages,\n        totalItems,\n        pageData{\n            pageNum,\n            itemCount,\n            items{\n                title,\n                content\n                likes\n            }\n        },\n    }\n}\n```\n\n### Article Mutations\n\n```shell\n# create a record\nmutation {\n  createArticles(createRecord:{title:\"Article10\",content:\"Kumar\",\"likes\":0,\"author_id\":1}) {\n    message\n    id\n  }    \n}\n# update a record\nmutation {\n  updateArticles(id:10,updateRecord:{title:\"Article10\",content:\"Kumar\",\"likes\":0,\"author_id\":1}) {\n    message\n  }    \n}\n# delete a record\nmutation {\n  deleteArticles(id:10) {\n    message\n  }    \n}\n```\n\n**Note**: All the data changes will be automatically saved to the json files.\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscionoftech%2Ffast-json-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscionoftech%2Ffast-json-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscionoftech%2Ffast-json-server/lists"}