{"id":18878320,"url":"https://github.com/captaincluster/request-header-parser-microservice","last_synced_at":"2025-04-14T18:32:12.228Z","repository":{"id":238497938,"uuid":"796664420","full_name":"CaptainCluster/Request-Header-Parser-Microservice","owner":"CaptainCluster","description":"The second project for the \"Back End Development and APIs\" course provided by FreeCodeCamp.","archived":true,"fork":false,"pushed_at":"2024-05-06T12:34:17.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-20T12:47:10.547Z","etag":null,"topics":["backend","expressjs","freecodecamp","freecodecamp-project","microservice"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CaptainCluster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-06T11:50:30.000Z","updated_at":"2024-09-26T07:26:40.000Z","dependencies_parsed_at":"2024-05-06T14:29:49.094Z","dependency_job_id":null,"html_url":"https://github.com/CaptainCluster/Request-Header-Parser-Microservice","commit_stats":null,"previous_names":["captaincluster/request-header-parser-microservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FRequest-Header-Parser-Microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FRequest-Header-Parser-Microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FRequest-Header-Parser-Microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCluster%2FRequest-Header-Parser-Microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainCluster","download_url":"https://codeload.github.com/CaptainCluster/Request-Header-Parser-Microservice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248936860,"owners_count":21186115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","expressjs","freecodecamp","freecodecamp-project","microservice"],"created_at":"2024-11-08T06:25:53.662Z","updated_at":"2025-04-14T18:32:11.937Z","avatar_url":"https://github.com/CaptainCluster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Request Header Parser Microservice\n\n![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge\u0026logo=express\u0026logoColor=%2361DAFB)\n\nRequest Header Parser Microservice is the 2nd project for FreeCodeCamp *Back End Development and APIs* course. It returns a JSON that contains three headers\nfrom a user request: **ip address**, **accept language** and **user agent**.\n\n🙏 Credits\n---\n![FreeCodeCamp](https://img.shields.io/badge/Freecodecamp-%23123.svg?\u0026style=for-the-badge\u0026logo=freecodecamp\u0026logoColor=green)\n\nEverything **not** written by me has been cloned from [this GitHub repository](https://github.com/freeCodeCamp/boilerplate-project-headerparser/).\n\nThe default README that comes with the cloned repository:\n\u003e This is the boilerplate for the Request Header Parser Microservice project. Instructions for building your project can be found at https://www.freecodecamp.org/learn/apis-and-microservices/apis-and-microservices-projects/request-header-parser-microservice\n\nHere is the solution I wrote for this project:\n```\n//My additions\n\napp.get(\"/api/whoami\", function(req, res)\n{\n  return res.json({\n    ipaddress: req.ip,\n    language: req.headers[\"accept-language\"],\n    software: req.headers[\"user-agent\"],\n  });\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincluster%2Frequest-header-parser-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptaincluster%2Frequest-header-parser-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincluster%2Frequest-header-parser-microservice/lists"}