Skip to content

balojey/stage_1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stage 1 task - Zuri Internship (Backend)

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:

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

JSON { "slack_name": "example_name", "current_day": "Monday", "utc_time": "2023-08-21T15:04:05Z", "track": "backend", "github_file_url": "https://github.com/username/repo/blob/main/file_name.ext", "github_repo_url": "https://github.com/username/repo", "status_code": 200 }

ALGORITHM

  1. Start
  2. Get the request parameters slack_name and track
  3. If slack_name or track does not exist
    • Set either slack_name or track to ""
  4. Create a dictionary of the JSON output
  5. Return the output
  6. End

Usage

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages