{"id":19889550,"url":"https://github.com/tsmx/netcoremicroservice","last_synced_at":"2025-08-01T23:39:08.837Z","repository":{"id":38104946,"uuid":"244453467","full_name":"tsmx/NetCoreMicroservice","owner":"tsmx","description":"Example for a .Net Core 3.1 microservice implementation including docker","archived":false,"fork":false,"pushed_at":"2022-08-01T12:36:25.000Z","size":432,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T19:23:51.438Z","etag":null,"topics":[],"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/tsmx.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}},"created_at":"2020-03-02T19:11:15.000Z","updated_at":"2022-08-01T12:35:51.000Z","dependencies_parsed_at":"2022-09-03T23:02:55.594Z","dependency_job_id":null,"html_url":"https://github.com/tsmx/NetCoreMicroservice","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/tsmx%2FNetCoreMicroservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2FNetCoreMicroservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2FNetCoreMicroservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsmx%2FNetCoreMicroservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsmx","download_url":"https://codeload.github.com/tsmx/NetCoreMicroservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241317601,"owners_count":19943202,"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-11-12T18:10:41.003Z","updated_at":"2025-03-01T04:44:16.461Z","avatar_url":"https://github.com/tsmx.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NetCoreMicroservice\n\nA very basic .Net Core 3.1 microservice example.\n\n## Prerequisites\n- .Net Core 3.1\n- VS Code plus plugin \"C#\" [optional]\n- Docker CE [optional]\n\n## Usage\n\nRun the service and send requests to the available endpoints listed below.\n\nCreating \u0026 running with Docker:\n```\ndocker build -t netcoreservice .\ndocker run -d -p 5000:80 netcoreservice\n```\n\n## Endpoints\n\n- `http:localhost:5000/testservice GET` returns a simple string\n- `http:localhost:5000/testservice POST` awaits a valid JSON request body, serializes \u0026 de-serializes it before echoing it back\n- `http:localhost:5000/testservice/person POST application/json` converts the request body JSON to a person object\n- `http:localhost:5000/testservice/person POST application/x-www-form-urlencoded` converts the request url-encoded form parameters to a person object\n\nTo test in Postman or with curl use the following definition of a `Person`object:\n\n```\n{\n    \"FirstName\": \"Karl\",\n    \"LastName: \"Heinz\",\n    \"Age\": 45\n}\n```\n\n## Useful commands\n\n```\ndotnet new webapi -o [project-name] --no-https\n```\ninitialize a new microservice project without https support for testing purposes\n\n```\ndotnet publish -c Release\n```\ncreate a \"release build\" of the service under bin/Release/, e.g. for building a docker image\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmx%2Fnetcoremicroservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsmx%2Fnetcoremicroservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsmx%2Fnetcoremicroservice/lists"}