{"id":22309074,"url":"https://github.com/spar/fakerest","last_synced_at":"2026-04-27T21:32:16.213Z","repository":{"id":40920639,"uuid":"93000046","full_name":"spar/FakeRest","owner":"spar","description":"Fake Rest Repository with already available data to play around","archived":false,"fork":false,"pushed_at":"2023-03-03T05:52:39.000Z","size":1151,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T01:34:20.663Z","etag":null,"topics":["csharp","fake","net","rest","rest-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/spar.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":"2017-06-01T00:22:33.000Z","updated_at":"2020-07-29T05:41:25.000Z","dependencies_parsed_at":"2025-03-26T01:32:23.946Z","dependency_job_id":"90d7b028-5893-483d-9a00-4572cb21715e","html_url":"https://github.com/spar/FakeRest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spar/FakeRest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spar%2FFakeRest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spar%2FFakeRest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spar%2FFakeRest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spar%2FFakeRest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spar","download_url":"https://codeload.github.com/spar/FakeRest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spar%2FFakeRest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32356598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"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":["csharp","fake","net","rest","rest-api"],"created_at":"2024-12-03T20:16:50.958Z","updated_at":"2026-04-27T21:32:16.198Z","avatar_url":"https://github.com/spar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fake Rest\nFake Rest Repository with already available data to play around.\n\n## Available Datasets\n* Users\n* Jeopardy Questions\n* Nasa Facilities (Nasa Open Data)\n* Nasa Patents (Nasa Open Data)\n\n## Live Version\nhttp://fakerest.sparekh.com/\n\n\n## Adding a new Json Dataset\n* Add the new Json file with name conventions : **EntityName**JsonData.json\n* Make sure the Json sturcture of the entity has an Id field.\n* Create a new class in Models folder with the same **EntiyName** as in the name of json dataset file.\n* Derive the new class from BaseClass and implemnt GetSearchableText method. This methods returns a string made of Searchable fields and used by search function.\n* Add a new Controller for the Entity and derive it from BaseController\u003cEntityName\u003e\n* Provide proper route the access the new controller and that's all. The BaseController has all the Logic to handle requests.\n\n## User Class Example\n\n```\npublic class User : BaseClass\n    {\n        public string FirstName { get; set; }\n        public string LastName { get; set; }\n        public string Email { get; set; }\n        public string Gender { get; set; }\n        public string Avatar { get; set; }\n        public override string GetSearchableText()\n        {\n            return Id + FirstName + LastName + Email + Gender;\n        }\n    }\n```\n\n## User Controller Example\n```\n[RoutePrefix(\"api/user\")]\npublic class UserController : BaseController\u003cUser\u003e\n{\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspar%2Ffakerest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspar%2Ffakerest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspar%2Ffakerest/lists"}