{"id":16534410,"url":"https://github.com/cristipufu/json-server-net","last_synced_at":"2026-02-15T09:04:41.172Z","repository":{"id":233092912,"uuid":"785997251","full_name":"cristipufu/json-server-net","owner":"cristipufu","description":"Dynamic JSON Server API built with ASP.NET Core Minimal APIs","archived":false,"fork":false,"pushed_at":"2024-04-13T06:01:32.000Z","size":11,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T05:34:39.384Z","etag":null,"topics":["aspnetcore","crud-api","fake-server","json-database","json-server","minimal-api","minimal-apis","mocks-server","net8"],"latest_commit_sha":null,"homepage":"","language":"C#","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/cristipufu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2024-04-13T05:42:28.000Z","updated_at":"2025-07-16T17:48:22.000Z","dependencies_parsed_at":"2024-04-13T20:10:22.921Z","dependency_job_id":"78930bd0-f229-45ee-a544-1fef97814ef5","html_url":"https://github.com/cristipufu/json-server-net","commit_stats":null,"previous_names":["cristipufu/json-server-net"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cristipufu/json-server-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristipufu%2Fjson-server-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristipufu%2Fjson-server-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristipufu%2Fjson-server-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristipufu%2Fjson-server-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristipufu","download_url":"https://codeload.github.com/cristipufu/json-server-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristipufu%2Fjson-server-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29474426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T06:58:05.414Z","status":"ssl_error","status_checked_at":"2026-02-15T06:58:05.085Z","response_time":118,"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":["aspnetcore","crud-api","fake-server","json-database","json-server","minimal-api","minimal-apis","mocks-server","net8"],"created_at":"2024-10-11T18:24:05.548Z","updated_at":"2026-02-15T09:04:41.154Z","avatar_url":"https://github.com/cristipufu.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Server Minimal APIs\nThis repository contains the source code for a dynamic JSON Server API built with ASP.NET Core Minimal APIs. The API provides RESTful services to interact with data stored in a JSON file, allowing CRUD operations on dynamically defined tables.\n\n## Getting Started\n\n### clone \n```bash\ncd json-server-api\\src\\JsonServer\n```\n### seed\n\nPaste the contents of your database in the `db.json` file:\n```json\n{\n  \"posts\": [\n    { \"id\": \"1\", \"title\": \"a title\", \"views\": 100 },\n    { \"id\": \"2\", \"title\": \"another title\", \"views\": 200 }\n  ],\n  \"comments\": [\n    { \"id\": \"1\", \"text\": \"a comment about post 1\", \"postId\": \"1\" },\n    { \"id\": \"2\", \"text\": \"another comment about post 1\", \"postId\": \"1\" }\n  ]\n}\n```\n### run\n\n```bash\ndotnet run\n```\n### browse\n\nNavigate to `http://localhost:5023/swagger/index.html` to view and interact with the API documentation.\n\n## API Endpoints\nEach table in the JSON database can be accessed via its name through the following endpoints:\n\n- `GET /{tableName}`: retrieves all entries from the specified table.\n- `GET /{tableName}/{id}`: retrieves a single entry by Id from the specified table.\n- `POST /{tableName}`: creates a new entry in the specified table.\n- `PUT /{tableName}/{id}`: updates an existing entry by Id in the specified table.\n- `DELETE /{tableName}/{id}`: deletes an entry by Id from the specified table.\n\n# Contributing\nContributions are welcome! Please feel free to submit a pull request or open an issue for any bugs or feature requests.\n\n# License\nThis project is licensed under the MIT License.\n\n# Support\nIf you encounter any issues or have questions, please file an issue on this repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristipufu%2Fjson-server-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristipufu%2Fjson-server-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristipufu%2Fjson-server-net/lists"}