Skip to content

alevanni/request-header-parser-microservice

Repository files navigation

My Preview

My solution for this exercise can be found here: https://whoam-i.glitch.me

User stories:

  1. I can get the IP address, preferred languages (from header Accept-Language) and system infos (from header User-Agent) for my device.

Tests

Tests can be found in the folder /tests:

  1. Postman test cases are in the "GET Suite.postman_collection.json" file
  2. Postman results are in the "GET Suite.postman_test_run.json" file
  3. Automated test cases are in the "functional-tests.js" file

Example usage:

  • [base_url]/api/whoami

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"}

About

A header parser microservice for FreeCodeCamp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published