Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.48 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.48 KB

ideal-succotash

Description

A WEB API application that exposes a single client endpoint. The endpoint returns a fancy string based on the input parameter (fancyNumber):

    • If the fancyNumber is a multiple of 3 - return "G",
    • If the fancyNumber is a multiple of 5 - return "N",
    • If the fancyNumber is a multiple of both 3 and 5 - return "GN";
    • Otherwise return the provided fancyNumber.

Before getting started

The application is not intended to be run publicly on production.

Getting started

Run the following commands:

  1. Install dependencies: npm install;
  2. Start application: npm start; The application is running on http://localhost:80 and contains a single endpoint:
  • [GET] http://localhost:80/{fancyNumber}, where fancyNumber is an integer.

Documentation

Swagger is used to demonstrate the API documentation. When application is running, visit http://localhost:80/api-docs from your broser to view the documentation.

Testing

Run unit tests by command in console: npm test.

Tools

Area for improvements