{"id":17003020,"url":"https://github.com/50-course/hngx","last_synced_at":"2026-04-17T15:03:01.930Z","repository":{"id":193588717,"uuid":"688476271","full_name":"50-Course/hngx","owner":"50-Course","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-11T07:41:15.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T09:41:27.613Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/50-Course.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,"publiccode":null,"codemeta":null}},"created_at":"2023-09-07T12:30:34.000Z","updated_at":"2023-09-11T07:42:18.000Z","dependencies_parsed_at":"2025-01-27T09:40:48.306Z","dependency_job_id":"8d48a7ce-cbfd-41d9-a2ba-090359869a62","html_url":"https://github.com/50-Course/hngx","commit_stats":null,"previous_names":["50-course/hngx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fhngx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fhngx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fhngx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/50-Course%2Fhngx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/50-Course","download_url":"https://codeload.github.com/50-Course/hngx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244937738,"owners_count":20535124,"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-10-14T04:29:35.853Z","updated_at":"2026-04-17T15:03:01.853Z","avatar_url":"https://github.com/50-Course.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/50-Course/hngx/assets/72922139/65a928fb-53e4-4d03-9746-30450935b4a6)\n\n\n## Objective\n\nCreate and host an endpoint using any programming language of your choice.\nThe endpoint should take two GET request query parameters and return specific information in JSON format.\n\n## Requirements\n\nThe information required includes:\n* Slack name\n* Current day of the week\n* Current UTC time (with validation of +/-2)\n* Track\n* The GitHub URL of the file being run\n* The GitHub URL of the full source code.\n* A  Status Code of Success\n\n## JSON\n\n```\n{\n  \"slack_name\": \"example_name\",\n  \"current_day\": \"Monday\",\n  \"utc_time\": \"2023-08-21T15:04:05Z\",\n  \"track\": \"backend\",\n  \"github_file_url\": \"https://github.com/username/repo/blob/main/file_name.ext\",\n  \"github_repo_url\": \"https://github.com/username/repo\",\n  “status_code”: 200\n}\n```\n\n## Acceptance Criteria\n\n* Endpoint Creation: Provide a publicly accessible endpoint.\n* GET Parameters: The endpoint should accept two GET request query parameters: slack_name and track.\n       E.g.: http://example.com/api?slack_name=example_name\u0026track=backend.\n* Slack Name: The response should include the slack_name passed as a GET request query parameter.\n* Current Day of the Week: Display the current day of the week in full (e.g., Monday, Tuesday, etc.).\n* Current UTC Time: Return the current UTC time, accurate within a +/-2 minute window.\n* Track: The response should display the track of the you signed up for (Backend). This will be based on the track GET parameter passed to the endpoint.\n* GitHub File URL: Include a direct link to the specific file in the GitHub repository that's being executed.\n* GitHub Repo URL: Include a link to the main page of the GitHub repository containing the project's entire source code.\n* Status Code: Return 200 as Integer.\n* JSON Format: The endpoint's response should adhere to the specified JSON format.\n\n## Testing: Before submission:\n\n* Ensure the endpoint is accessible.\n* Check the returned JSON against the defined format.\n* Validate the correctness of each data point in the JSON response.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F50-course%2Fhngx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F50-course%2Fhngx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F50-course%2Fhngx/lists"}