{"id":17078026,"url":"https://github.com/fabiangosebrink/aspnetcore-webapi-sample","last_synced_at":"2025-05-15T02:07:17.913Z","repository":{"id":41315146,"uuid":"41798677","full_name":"FabianGosebrink/ASPNETCore-WebAPI-Sample","owner":"FabianGosebrink","description":"This is a sample ASP.NET Core WebAPI","archived":false,"fork":false,"pushed_at":"2025-01-27T18:51:59.000Z","size":3616,"stargazers_count":671,"open_issues_count":8,"forks_count":378,"subscribers_count":27,"default_branch":"main","last_synced_at":"2025-04-15T01:58:14.318Z","etag":null,"topics":["asp-net-core","aspnetcore","webapi","webapi-sample"],"latest_commit_sha":null,"homepage":"http://offering.solutions/blog/articles/2016/07/29/how-to-create-an-asp-net-core-webapi/","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/FabianGosebrink.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":"2015-09-02T12:03:00.000Z","updated_at":"2025-04-08T14:10:37.000Z","dependencies_parsed_at":"2025-02-24T12:03:41.768Z","dependency_job_id":"5957f723-331b-4280-96ae-d0ee68fdd9ed","html_url":"https://github.com/FabianGosebrink/ASPNETCore-WebAPI-Sample","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/FabianGosebrink%2FASPNETCore-WebAPI-Sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabianGosebrink%2FASPNETCore-WebAPI-Sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabianGosebrink%2FASPNETCore-WebAPI-Sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FabianGosebrink%2FASPNETCore-WebAPI-Sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FabianGosebrink","download_url":"https://codeload.github.com/FabianGosebrink/ASPNETCore-WebAPI-Sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259383,"owners_count":22040820,"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":["asp-net-core","aspnetcore","webapi","webapi-sample"],"created_at":"2024-10-14T12:19:00.687Z","updated_at":"2025-05-15T02:07:17.876Z","avatar_url":"https://github.com/FabianGosebrink.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASP.NET Core WebApi Sample with HATEOAS, Versioning \u0026 Swagger\n\nIn this repository I want to give a plain starting point at how to build a WebAPI with ASP.NET Core.\n\nThis repository contains a controller which is dealing with FoodItems. You can GET/POST/PUT/PATCH and DELETE them.\n\nHope this helps.\n\nSee the examples here: \n\n## Versions\n\n``` http://localhost:29435/swagger ```\n\n![ASPNETCOREWebAPIVersions](./.github/versions.jpg)\n\n## GET all Foods\n\n``` http://localhost:29435/api/v1/foods ```\n\n![ASPNETCOREWebAPIGET](./.github/get.jpg)\n\n## GET single food\n\n``` http://localhost:29435/api/v1/foods/2 ```\n\n![ASPNETCOREWebAPIGET](./.github/getSingle.jpg)\n\n## POST a foodItem\n\n``` http://localhost:29435/api/v1/foods ```\n\n```javascript\n  {\n      \"name\": \"Lasagne\",\n      \"type\": \"Main\",\n      \"calories\": 3000,\n      \"created\": \"2017-09-16T17:50:08.1510899+02:00\"\n  }\n```\n\n![ASPNETCOREWebAPIGET](./.github/post.jpg)\n\n## PUT a foodItem\n\n``` http://localhost:29435/api/v1/foods/5 ```\n\n``` javascript\n{\n    \"name\": \"Lasagne2\",\n    \"type\": \"Main\",\n    \"calories\": 3000,\n    \"created\": \"2017-09-16T17:50:08.1510899+02:00\"\n}\n```\n\n![ASPNETCOREWebAPIGET](./.github/put.jpg)\n\n\n## PATCH a foodItem\n\n``` http://localhost:29435/api/v1/foods/5 ```\n\n``` javascript\n[\n  { \"op\": \"replace\", \"path\": \"/name\", \"value\": \"mynewname\" }\n]\n```\n\n![ASPNETCOREWebAPIGET](./.github/patch.jpg)\n\n## DELETE a foodItem\n\n``` http://localhost:29435/api/v1/foods/5 ```\n\n\n![ASPNETCOREWebAPIGET](./.github/delete.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiangosebrink%2Faspnetcore-webapi-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiangosebrink%2Faspnetcore-webapi-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiangosebrink%2Faspnetcore-webapi-sample/lists"}