Skip to content

sitek94/request-header-parser

Repository files navigation

Request Header Parser

A simple microservice that parses the request header and sends back a JSON object with ipaddress, language and software keys.

This project is my solution for APIs and Microservices Projects - Request Header Parser Microservice and it's a part of APIs and Microservices Certification by freeCodeCamp.

Requirements

✅ A request to /api/whoami should return a JSON object with your IP address in the ipaddress key.

✅ A request to /api/whoami should return a JSON object with your preferred language in the language key.

✅ A request to /api/whoami should return a JSON object with your software in the software key.

Installation

Install dependencies

$ npm install

Start the server

$ npm run dev

About

Simple microservice that parses a request and returns a JSON object with your IP, preferred language and software.

Topics

Resources

License

Stars

Watchers

Forks