{"id":15691042,"url":"https://github.com/softchris/mock-sharp","last_synced_at":"2025-10-29T01:22:01.481Z","repository":{"id":72018482,"uuid":"462060018","full_name":"softchris/mock-sharp","owner":"softchris","description":"Mock API for minimal API, ASP .NET, written in C#","archived":false,"fork":false,"pushed_at":"2022-02-22T13:09:07.000Z","size":7,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-20T04:34:18.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/softchris.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}},"created_at":"2022-02-21T23:03:27.000Z","updated_at":"2025-01-21T20:14:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"951a9c6a-aa59-49ef-876e-f39f9478e916","html_url":"https://github.com/softchris/mock-sharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fmock-sharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fmock-sharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fmock-sharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softchris%2Fmock-sharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softchris","download_url":"https://codeload.github.com/softchris/mock-sharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973620,"owners_count":21834105,"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":"2024-10-03T18:19:22.854Z","updated_at":"2025-10-29T01:22:01.429Z","avatar_url":"https://github.com/softchris.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mock-sharp\n\nMock API for minimal API, ASP .NET, written in C#\n\n## Run\n\nType `dotnet run`\n\n```bash\ndotnet run\n```\n\nThis should show the supported routes in the terminal\n\n## NuGet package\n\nComing...\n\n## Features\n\nGiven a mock file, (for now it's hardcoded as *mock.json*), with the following JSON content:\n\n```json\n{\n  \"Products\": [\n    {\n      \"Id\": 1,\n      \"Name\": \"Mock\"\n    },\n    {\n      \"Id\": 2,\n      \"Name\": \"Second Mock\"\n    }\n  ]\n}\n```\n\nit will create the below routes:\n\n|Verb  |Route  | Description |\n|---------|---------|---------|\n|GET     |  /products       | fetches a list of products        |\n|GET     | /products/{id} | fetches one product, given unique identifier `id` |\n|POST    | /products | creates a new product, assumes a JSON represenation is sent via the BODY |\n|DELETE | /products/{id} | deletes one product, given unique identifier `id` |\n|PUT | | Coming.. |\n\n### Query parameters\n\nComing\n\n## Mock data\n\nmock data is in *mock.json*. Here's an example of what it could look like:\n\n```json\n{\n  \"Products\": [\n    {\n      \"Id\": 1,\n      \"Name\": \"Mock\"\n    },\n    {\n      \"Id\": 2,\n      \"Name\": \"Second Mock\"\n    }\n  ],\n  \"Orders\": [\n    {\n      \"Id\": 1,\n      \"Name\": \"Order1\"\n    },\n    {\n      \"Id\": 2,\n      \"Name\": \"Second Order\"\n    }\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchris%2Fmock-sharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftchris%2Fmock-sharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftchris%2Fmock-sharp/lists"}