Skip to content

andradeoromulo/header-parser-microservice

Repository files navigation

API Project: Request Header Parser Microservice for FCC

Run on Repl.it

About

This is my project of the Request Header Parser challenge for the freeCodeCamp API and Microservice certification. It was built based on the boilerplate available here.

Endpoints:

Endpoints Description
GET /api/whoami Return an object with IP Address and information from accept-language and user-agent headers

Example usage:

Example output:

  • {"ipaddress":"159.20.14.100","language":"en-US,en;q=0.5", "software":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"}

How to use:

Just run on terminal:

npm install
npm start

Feedback

I'm a student and I really would like to hear case you have any tips, correction suggestions or comments about any my of projects (🤓).