alindaByamukama / query-params-endpoint

An endpoint using JS, Express JS and NodeJS, that takes two GET request query parameters and return specific information in JSON format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ”ด 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

How to run or test this endpoint

  1. Go to the http://example.com and query with '/api?slack_name=example_name&track=backend'. ~ OR ~
  2. Run the server locally on your desktop or laptop:
    • clone the project from the main branch,
    • cd into the project directory,
    • run npm install to update the packages,
    • open the terminal and enter npm start,
    • then navigate to localhost:/3000,
    • add the query parameters '/api?slack_name=example_name&track=backend' to the url

About

An endpoint using JS, Express JS and NodeJS, that takes two GET request query parameters and return specific information in JSON format.


Languages

Language:JavaScript 100.0%