{"id":18084156,"url":"https://github.com/khachatur/flightpathtracker","last_synced_at":"2025-04-05T23:42:33.875Z","repository":{"id":259891726,"uuid":"879714775","full_name":"khachatur/FlightPathTracker","owner":"khachatur","description":"The Flight Path Tracker API is a microservice designed to help track and understand flight paths based on provided flight records.","archived":false,"fork":false,"pushed_at":"2024-10-28T13:25:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T23:42:30.714Z","etag":null,"topics":["api","azure","cqrs","csharp","flight-tracking","graph","mediatr","microservice","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"C#","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/khachatur.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-10-28T12:26:35.000Z","updated_at":"2024-10-29T07:18:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ab19afd-5965-4a9f-9ba5-9192707c6916","html_url":"https://github.com/khachatur/FlightPathTracker","commit_stats":null,"previous_names":["khachatur/flightpathtracker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khachatur%2FFlightPathTracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khachatur%2FFlightPathTracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khachatur%2FFlightPathTracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khachatur%2FFlightPathTracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khachatur","download_url":"https://codeload.github.com/khachatur/FlightPathTracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247415928,"owners_count":20935385,"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":["api","azure","cqrs","csharp","flight-tracking","graph","mediatr","microservice","unit-testing"],"created_at":"2024-10-31T15:05:53.831Z","updated_at":"2025-04-05T23:42:33.859Z","avatar_url":"https://github.com/khachatur.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flight Path Tracker API\n\n## Overview\n\nThe **Flight Path Tracker API** is a microservice designed to help track and understand flight paths based on provided flight records.\n\nStory: There are over 100,000 flights a day, with millions of people and cargo being transferred worldwide. With so many people and different carrier/agency groups, tracking where a person might be can be hard. To determine a person's flight path, we must sort through their flight records.\n\nGoal: To create a simple microservice API to help us understand and track how a particular person's flight path may be queried. The API should accept a request that includes a list of flights defined by a source and destination airport code. These flights may not be listed in order and must be sorted to find the total flight paths starting and ending at airports.\n\nRequired JSON structure:\n\n- [[\"SFO\", \"EWR\"]] =\u003e [\"SFO\", \"EWR\"]\n- [[\"ATL\", \"EWR\"], [\"SFO\", \"ATL\"]] =\u003e [\"SFO\", \"EWR\"]\n- [[\"IND\", \"EWR\"], [\"SFO\", \"ATL\"], [\"GSO\", \"IND\"], [\"ATL\", \"GSO\"]] =\u003e [\"SFO\", \"EWR\"]\n\n## Specifications\n\n- **Port**: The microservice listens on **port 8080**.\n- **Endpoint**: The API exposes the flight path tracker under the `/calculate` endpoint.\n\n## Installation\n\n### Prerequisites\n\n- .NET SDK (version 8.0 or later)\n\n### Steps to Run the Project\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/khachatur/FlightPathTracker.git\n   cd FlightPathTracker\n\n   ```\n\n2. Restore dependencies:\n\n   ```bash\n   dotnet restore\n\n   ```\n\n3. Run the application:\n\n   ```bash\n   dotnet run --project src/FlightPathTracker.Api\n\n   ```\n\n4. The API will be accessible at http://localhost:8080.\n\n## API Endpoint\n\n### POST /calculate\n\n### Request Body\n\nJSON array of flights:\n\n```json\n{\n  \"flights\": [\n    [\"ATL\", \"EWR\"],\n    [\"SFO\", \"ATL\"]\n  ]\n}\n```\n\n### Response\n\n- JSON array representing the calculated flight path.\n\nResponse body\n\n```json\n[\"SFO\", \"EWR\"]\n```\n\n### Testing\n\nYou can test the API using Swagger UI or tools like Postman or curl.\n\n### Conclusion\n\nThe API provides an efficient way to track flight paths based on airport codes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhachatur%2Fflightpathtracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhachatur%2Fflightpathtracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhachatur%2Fflightpathtracker/lists"}