Skip to content

emeralddd123/HNGx-stage-one

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HNGx-stage-one

Objective

Create and host an endpoint using any programming language of your choice.

The endpoint should take two GET request query parameters and return specific information in JSON format.

Requirements

The information required includes:

  1. Slack name
  2. Current day of the week
  3. Current UTC time (with validation of +/-2)
  4. Track
  5. The GitHub URL of the file being run
  6. The GitHub URL of the full source code.
  7. A Status Code of Success

Result in JSON

{
    "slack_name": "HNGx",
    "current_day": "Thursday",
    "utc_time": "2023-09-07T21:17:00Z",
    "track": "backend",
    "github_file_url": "https://github.com/emeralddd123/HNGx-stage-one/blob/main/app.js",
    "github_repo_url": "https://github.com/emeralddd123/HNGx-stage-one",
    "status_code": 200
}