{"id":18535348,"url":"https://github.com/sanjinkurelic/highscoremicroserviceaspcore","last_synced_at":"2025-08-25T20:15:47.852Z","repository":{"id":200595675,"uuid":"120107700","full_name":"SanjinKurelic/HighScoreMicroserviceASPCore","owner":"SanjinKurelic","description":"High score microservice written in ASP .NET Core","archived":false,"fork":false,"pushed_at":"2018-10-16T21:06:16.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-15T00:18:03.700Z","etag":null,"topics":["asp-net-core","csharp","highscores-api","microservice","netcore","rest-api"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":false,"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/SanjinKurelic.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}},"created_at":"2018-02-03T16:21:07.000Z","updated_at":"2024-09-20T11:49:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bce571c-d418-4815-b8ba-b525076027d2","html_url":"https://github.com/SanjinKurelic/HighScoreMicroserviceASPCore","commit_stats":null,"previous_names":["sanjinkurelic/highscoremicroserviceaspcore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SanjinKurelic/HighScoreMicroserviceASPCore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjinKurelic%2FHighScoreMicroserviceASPCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjinKurelic%2FHighScoreMicroserviceASPCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjinKurelic%2FHighScoreMicroserviceASPCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjinKurelic%2FHighScoreMicroserviceASPCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SanjinKurelic","download_url":"https://codeload.github.com/SanjinKurelic/HighScoreMicroserviceASPCore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SanjinKurelic%2FHighScoreMicroserviceASPCore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272124787,"owners_count":24877726,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"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":["asp-net-core","csharp","highscores-api","microservice","netcore","rest-api"],"created_at":"2024-11-06T19:22:34.802Z","updated_at":"2025-08-25T20:15:47.801Z","avatar_url":"https://github.com/SanjinKurelic.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HighScore API\n\nMicroservice responsable for storing high scores of different players (users). **This repository is for learning purposes only. Connecting to database and authentication is not implemented in this public repository.**\n\n## User manipulation\n\n### Get user list\n\nGet all users stored on the server:\n\n```\nGET /user/ HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n\n{\n    [\n        \"id\":1\n        \"name\":\"user name\",\n        \"country\":\"HR\"\n    ], ...\n}\n```\n\nGet data form specific user:\n\n```\nGET /user/{id} HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n\n{\n    \"id\":1\n    \"name\":\"user name\",\n    \"country\":\"HR\"\n}\n```\n\n### Adding new user\n\nAdd new user (name and country). Server response with user id.\n\n**Request:**\n\n```\nPOST /user/ HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n\n{\n    \"name\":\"user name\",\n    \"country\":\"HR\"\n}\n```\n\n**Response:**\n\n200 ok\n\n```\n{ \"id\":\"userId\" }\n```\n\n### Remove user data\n\nRemove user with user id.\n\n**Request:**\n\n```\nDELETE /user/{id} HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n```\n\n**Response:**\n\n200 ok\n\n## Score list maniuplation\n\n### Add new score\n\nAdd new score for user (id).\n\n**Request:**\n\n```\nPOST /score HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n\n{\n    \"id\":\u003cuser id\u003e,\n    \"score\":12\n}\n```\n\n**Response:**\n\n200 ok\n\n## Get score list\n\nThe server can return score list ordered by score. **Biggest score is the first element of the returned array**.\n\n**Request:**\n\n```\nGET /score/ HTTP/1.1\nHost: api.example.org\nAccept: application/json\n```\n\n**Response:**\n\n200 ok\n\n```\n{\n    [\n        \"score\":12, \n        \"user\":{\n            \"id\":1\n            \"name\":\"user name\"\n            \"country\":\"hr\"\n        }\n    ], ...\n}\n```\n\nIf you wish to get score list for the defined country you can use:\n\n**Request:**\n\n```\nGET /score/{country} HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n```\n\n**Response:**\n\n200 ok\n\n```\n{\n    [\n        \"score\":12, \n        \"user\":{\n            \"id\":1\n            \"name\":\"user name\"\n            \"country\":\"hr\"\n        }\n    ], ...\n}\n```\n\n## Get player position\n\nGet global position for a player with id.\n\n**Request:**\n\n```\nGET /score/position/{id} HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n```\n\n**Response:**\n\n200 ok\n\n```\n{\n    \"userPosition\":1\n}\n```\n\nGet local position for a player with id in defining country.\n\n**Request:**\n\n```\nGET /score/position/{id}/{country} HTTP/1.1\nHost: api.example.org\nContent-Type: application/json\nAccept: application/json\n```\n\n**Response:**\n\n200 ok\n\n```\n{\n    \"userPosition\":1\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjinkurelic%2Fhighscoremicroserviceaspcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsanjinkurelic%2Fhighscoremicroserviceaspcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsanjinkurelic%2Fhighscoremicroserviceaspcore/lists"}