{"id":22097506,"url":"https://github.com/anazcodes/signalzero","last_synced_at":"2025-09-11T10:39:57.325Z","repository":{"id":230102346,"uuid":"778477114","full_name":"anazcodes/signalzero","owner":"anazcodes","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-27T20:35:18.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T04:15:40.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/anazcodes.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}},"created_at":"2024-03-27T19:58:03.000Z","updated_at":"2024-03-27T19:58:09.000Z","dependencies_parsed_at":"2024-03-27T21:48:20.204Z","dependency_job_id":null,"html_url":"https://github.com/anazcodes/signalzero","commit_stats":null,"previous_names":["anazibinurasheed/signalzero","anazcodes/signalzero"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anazcodes%2Fsignalzero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anazcodes%2Fsignalzero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anazcodes%2Fsignalzero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anazcodes%2Fsignalzero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anazcodes","download_url":"https://codeload.github.com/anazcodes/signalzero/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236148737,"owners_count":19102714,"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-12-01T04:15:44.828Z","updated_at":"2025-01-29T07:43:00.374Z","avatar_url":"https://github.com/anazcodes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Assessment\n===\n\nImplement 2 API endpoints using the Gin framework, and the endpoints should store and retrieve data from MongoDB.\n\n## Requirements\n\n### POST API\n\n- Send the user details such as user_id, username, password in the request body.\n- Receive it on the backend, then insert it into a MongoDB collection.\n\n##### Request\n\n```\ncurl --location 'http://localhost:8080/' \\\n--header 'Content-Type: application/json' \\\n--data '{\n\n\"user_id\":\"1\",\n\"username\":\"new person\",\n\"password\":\"1234\"\n}'\n```\n### GET API\n\n- Retrieve username as a query parameter from the request.\n- If the query is empty, show all users stored in the 'users' collection.\n- If the query exists, retrieve all the users whose names start with the specified prefix.\n- Give response with the retrieved user information.\n\n##### Request\n\n```\ncurl --location 'http://localhost:8080?username=new'\n```\n\n\n\n### Tested Platform\n  ```\n  OS: Ubuntu LTS\n  Go: version go1.22.1 linux/amd64\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanazcodes%2Fsignalzero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanazcodes%2Fsignalzero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanazcodes%2Fsignalzero/lists"}