{"id":19654140,"url":"https://github.com/aimenux/webapihostingdemo","last_synced_at":"2026-06-11T12:31:52.842Z","repository":{"id":50397577,"uuid":"518921141","full_name":"aimenux/WebApiHostingDemo","owner":"aimenux","description":"Using various hosting ways in order to setup a web api","archived":false,"fork":false,"pushed_at":"2025-06-03T21:36:30.000Z","size":24,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T06:04:39.557Z","etag":null,"topics":["fluent-assertions","integration-testing","minimal-api","net60","nsubstitute","serilog","webapi"],"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/aimenux.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}},"created_at":"2022-07-28T16:36:14.000Z","updated_at":"2025-06-03T21:36:32.000Z","dependencies_parsed_at":"2023-01-19T03:20:28.144Z","dependency_job_id":null,"html_url":"https://github.com/aimenux/WebApiHostingDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimenux/WebApiHostingDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWebApiHostingDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWebApiHostingDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWebApiHostingDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWebApiHostingDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimenux","download_url":"https://codeload.github.com/aimenux/WebApiHostingDemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FWebApiHostingDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34199516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fluent-assertions","integration-testing","minimal-api","net60","nsubstitute","serilog","webapi"],"created_at":"2024-11-11T15:16:27.113Z","updated_at":"2026-06-11T12:31:52.824Z","avatar_url":"https://github.com/aimenux.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![.NET](https://github.com/aimenux/WebApiHostingDemo/actions/workflows/ci.yml/badge.svg)](https://github.com/aimenux/WebApiHostingDemo/actions/workflows/ci.yml)\n\n# WebApiHostingDemo\n```\nExploring various hosting ways in order to setup a web api\n```\n\n\u003e In this repo, i m exploring various hosting ways in order to setup a web api\n\u003e\n\u003e :one: `Example01` use default template with controller(s) and [top level statements](https://docs.microsoft.com/en-us/dotnet/csharp/whats-new/tutorials/top-level-statements) program class\n\u003e\n\u003e :two: `Example02` use startup class with controller(s) and program class based on [generic host](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host)\n\u003e\n\u003e :three: `Example03` use startup class with controller(s) and program class based on [web application](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.builder.webapplication)\n\u003e\n\u003e :four: `Example04` is very similar to `Example03` with an [elegant way to call startup class behind the scenes](https://www.strathweb.com/2022/02/using-an-existing-startup-class-with-asp-net-6-minimal-hosting-model/)\n\u003e\n\u003e :five: `Example05` use [minimal api template](https://docs.microsoft.com/en-us/aspnet/core/tutorials/min-web-api)\n\u003e\n\n**`Tools`** : vs22, net 6.0, web api, serilog, integration-testing, fluent-assertions, nsubstitute\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fwebapihostingdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimenux%2Fwebapihostingdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fwebapihostingdemo/lists"}