{"id":15190465,"url":"https://github.com/haiderabb/node-express-flight-api","last_synced_at":"2026-02-18T07:02:06.726Z","repository":{"id":247134829,"uuid":"824134283","full_name":"HaiderABB/node-express-flight-api","owner":"HaiderABB","description":"This project features a RESTful API built with Node.js and Express, leveraging MongoDB for database management to fetch flight information through multiple endpoints. Mongoose is employed for efficient database interaction and schema definition.","archived":false,"fork":false,"pushed_at":"2024-07-25T13:12:01.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T20:02:01.439Z","etag":null,"topics":["api","expressjs","javascript","mongodb","mongoosejs","nodejs","postman","restful-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HaiderABB.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-04T12:35:55.000Z","updated_at":"2024-07-25T13:12:05.000Z","dependencies_parsed_at":"2024-07-06T20:29:22.282Z","dependency_job_id":"d6bccc55-dad3-48f6-9b65-65e5be1dae21","html_url":"https://github.com/HaiderABB/node-express-flight-api","commit_stats":null,"previous_names":["haiderabb/node-express-flight-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HaiderABB/node-express-flight-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2Fnode-express-flight-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2Fnode-express-flight-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2Fnode-express-flight-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2Fnode-express-flight-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HaiderABB","download_url":"https://codeload.github.com/HaiderABB/node-express-flight-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2Fnode-express-flight-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279160818,"owners_count":26116815,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","expressjs","javascript","mongodb","mongoosejs","nodejs","postman","restful-api"],"created_at":"2024-09-27T20:23:30.521Z","updated_at":"2025-10-16T05:56:41.096Z","avatar_url":"https://github.com/HaiderABB.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flight Information API\n\n## Overview\n\nThis API provides endpoints to retrieve flight information based on various parameters such as origin, destination, travel dates, number of passengers, and class preference (economy, business, or first class).\n\n## Endpoints\n\n### Get Flights\n\n#### Endpoint\n\n\n#### Query Parameters\n\n- **from**: Departure location.\n- **to**: Destination location.\n- **oneWay**: Boolean indicating if it's a one-way flight (`true` or `false`).\n- **departureDate**: Date of departure (format: YYYY-MM-DD).\n- **returnDate**: Date of return flight (required if `oneWay` is `false`; format: YYYY-MM-DD).\n- **passengers**: Number of passengers.\n- **class**: Travel class preference (e.g., economy, business, first).\n\n#### Example Usage\n\n```bash\ncurl -X GET 'http://localhost:5000/api/flights?from=New+York\u0026to=Los+Angeles\u0026oneWay=false\u0026departureDate=2024-07-10\u0026returnDate=2024-07-15\u0026passengers=2\u0026class=economy'\n```\n## Setup\n\nTo set up and run the API locally, follow these steps :\n\n1. Clone the Repository\n\n```bash\ngit clone https://github.com/your-username/flight-info-api.git\ncd flight-info-api\n```\n\n2. Install Dependencies\n\n```bash\nnpm install\n```\n\n3. Run the Server\n```bash\nnpm start\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaiderabb%2Fnode-express-flight-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaiderabb%2Fnode-express-flight-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaiderabb%2Fnode-express-flight-api/lists"}