{"id":25549665,"url":"https://github.com/netlah/echoserviceapi","last_synced_at":"2026-02-14T14:30:17.916Z","repository":{"id":43553691,"uuid":"377754706","full_name":"NetLah/EchoServiceApi","owner":"NetLah","description":"ASP.NET Core WebApi provide Echo Service for testing deployment and integration environment","archived":false,"fork":false,"pushed_at":"2024-03-25T05:56:54.000Z","size":377,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-25T06:48:48.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/netlah/echo-service-api","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/NetLah.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}},"created_at":"2021-06-17T08:13:07.000Z","updated_at":"2024-01-15T09:52:10.000Z","dependencies_parsed_at":"2023-02-05T05:46:16.621Z","dependency_job_id":"cfbdb835-7d9f-4d5f-ad7c-23bc3a9994af","html_url":"https://github.com/NetLah/EchoServiceApi","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetLah%2FEchoServiceApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetLah%2FEchoServiceApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetLah%2FEchoServiceApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetLah%2FEchoServiceApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetLah","download_url":"https://codeload.github.com/NetLah/EchoServiceApi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239816509,"owners_count":19701753,"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":"2025-02-20T10:19:18.779Z","updated_at":"2026-02-14T14:30:17.862Z","avatar_url":"https://github.com/NetLah.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASP.NET Core Echo Service WebApi\n\nASP.NET Core WebApi provide Echo Service Api for troubleshooting and diagnosing during deployment and integration. This is useful tool on detecting deployment (setup environment) and development issue OAuth and OIDC with deployment environment.\n\n## Build Status\n\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2FNetLah%2FEchoServiceApi%2Fbadge%3Fref%3Dmain\u0026style=flat)](https://actions-badge.atrox.dev/NetLah/EchoServiceApi/goto?ref=main)\n\n## Getting started\n\n### Use docker run\n\n- Check docker repository on Docker Hub: https://hub.docker.com/r/netlah/echo-service-api\n\n- Support Linux and Windows Server 2019 with nanoserver 1809 base.\n\n- This docker repository not support tag `latest` and multi arch yet, there is 2 tags `linux` and `nanoserver-1809`\n\n```\ndocker pull netlah/echo-service-api:linux\ndocker run -d -p 5000:80 --name echoapi netlah/echo-service-api:linux\ndocker logs -f echoapi\ndocker rm -f echoapi\n```\n\n### Run ASP.NET Core Echo Service API from command line using dotnet\n\n- Checkout source code from GitHub\n\n- Run the ASP.NET Core WebApi application using command line\n\n```\ndotnet run -p EchoServiceApi\n```\n\nOutput\n\n```\nC:\\Work\\NetLah\\EchoServiceApi\u003edotnet run -p EchoServiceApi\nBuilding...\n[16:44:23 INF] Application configure...\n[16:44:23 DBG] Logger has been initialized.\n[16:44:23 INF] Application initializing...\n[16:44:23 INF] Startup ...\n[16:44:23 INF] ConfigureServices ...\n[16:44:23 INF] WebApplication configure ...\n[16:44:23 INF] Environment: Development; DeveloperMode:True\n[16:44:23 INF] Now listening on: https://localhost:5001\n[16:44:23 INF] Now listening on: http://localhost:5000\n[16:44:23 INF] Application started. Press Ctrl+C to shut down.\n[16:44:23 INF] Hosting environment: Development\n[16:44:23 INF] Content root path: C:\\Work\\NetLah\\EchoServiceApi\\EchoServiceApi\n[16:44:25 INF] HTTP GET /e/hello-world responded 200 in 77.2946 ms\n```\n\n![dotnet-run-output](https://raw.githubusercontent.com/NetLah/EchoServiceApi/main/docs/dotnet-run-output.png)\n\n### Hit the echo service api\n\n- Using any REST tool or browser to hit the Echo service API on URL\n\n```\nhttps://\u003cdomain:port\u003e/e/\u003cwhat-ever-path-and-method\u003e\n```\n\n- Use browser and hit the URL `https://localhost:5001/e/hello-world`\n\n![browser-hello-world](https://raw.githubusercontent.com/NetLah/EchoServiceApi/main/docs/browser-hello-world.png)\n\n### Test with hosting and Reverse Proxy\n\n- This Echo Service Api support both IIS In process, IIS out process, IIS ARR URL Rewrite or NGINX.\n\n- For forwarded headers issue when behind Reverse Proxy, can check this article for further understanding: https://devblogs.microsoft.com/aspnet/forwarded-headers-middleware-updates-in-net-core-3-0-preview-6/\n\n- To add support Forwarded Headers when use with Reverse Proxy, make sure add this environment setting (environment settings, it is not support appsettings.json).\n\n```\nASPNETCORE_FORWARDEDHEADERS_ENABLED=true\n```\n\n- For IIS ARR UrlRewrite, make sure add Server variable `HTTP_X_Forwarded_Proto` and provide proper value, the below is the sample for reference (do not use for production):\n\nweb.config\n\n```\n\u003cconfiguration\u003e\n    \u003csystem.webServer\u003e\n        \u003crewrite\u003e\n            \u003crules\u003e\n                \u003crule name=\"ARR_Proxy\" patternSyntax=\"Wildcard\" stopProcessing=\"true\"\u003e\n                    \u003cmatch url=\"*\" /\u003e\n                    \u003caction type=\"Rewrite\" url=\"http://web-farm-name/{R:1}\" /\u003e\n                    \u003cserverVariables\u003e\n                        \u003cset name=\"HTTP_X_Forwarded_Proto\" value=\"https\" /\u003e\n                    \u003c/serverVariables\u003e\n                \u003c/rule\u003e\n            \u003c/rules\u003e\n        \u003c/rewrite\u003e\n    \u003c/system.webServer\u003e\n\u003c/configuration\u003e\n```\n\n## Troubleshooting configuration, appsettings, connection strings and environments\n\n### Setup connection strings with provider name and dump connection strings\n\nSetup Azure AppService connection strings use specified provider or custom\n\n![azure-appservice-configuration-connection-strings.png](https://raw.githubusercontent.com/NetLah/EchoServiceApi/main/docs/azure-appservice-configuration-connection-strings.png)\n\nDump connection strings\n\n```\nhttps://echoapi-******.azurewebsites.net/dump/connectionStrings\n```\n\n![dump-connectionStrings.png](https://raw.githubusercontent.com/NetLah/EchoServiceApi/main/docs/dump-connectionStrings.png)\n\n### Dump appsettings\n\n```\nhttps://echoapi-******.azurewebsites.net/dump/appSettings?env=false\n```\n\n![dump-appsettings.png](https://raw.githubusercontent.com/NetLah/EchoServiceApi/main/docs/dump-appsettings.png)\n\n### Dump environments\n\n```\nhttps://echoapi-******.azurewebsites.net/dump/environments\n```\n\n![dump-environments.png](https://raw.githubusercontent.com/NetLah/EchoServiceApi/main/docs/dump-environments.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlah%2Fechoserviceapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlah%2Fechoserviceapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlah%2Fechoserviceapi/lists"}