https://github.com/ramanaditya/api-project-request-header-parser-microservice
https://github.com/ramanaditya/api-project-request-header-parser-microservice
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ramanaditya/api-project-request-header-parser-microservice
- Owner: ramanaditya
- Created: 2020-02-06T23:20:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-06T23:22:45.000Z (almost 6 years ago)
- Last Synced: 2025-01-07T05:16:06.406Z (12 months ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Project: Request Header Parser Microservice for freeCodeCamp
### 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.
#### 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"}`
Live App : https://occipital-answer-2syrriey54.glitch.me/