{"id":19027473,"url":"https://github.com/HaiderABB/WingData-API","last_synced_at":"2026-05-01T17:30:19.559Z","repository":{"id":250680650,"uuid":"835124776","full_name":"HaiderABB/TraVisor-Backend","owner":"HaiderABB","description":" This project is a backend server using Node.js and Express, offering a RESTful API for user authentication and data  such as flights, Hotels, Restaurants, and Guides. It uses MongoDB with Mongoose for database management and bcrypt.js for secure password hashing. The server provides secure user management and flight information endpoints.","archived":false,"fork":false,"pushed_at":"2024-08-13T09:02:31.000Z","size":139,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T03:15:27.078Z","etag":null,"topics":["api","bcryptjs","controllers","expressjs","hashing","html-emails","javascript","jsonwebtoken","jwt-authentication","middlewares","mongodb","mongoose","nodejs","nodemailer","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":"gpl-3.0","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-29T07:59:14.000Z","updated_at":"2024-08-13T09:02:35.000Z","dependencies_parsed_at":"2024-08-13T12:56:18.180Z","dependency_job_id":null,"html_url":"https://github.com/HaiderABB/TraVisor-Backend","commit_stats":null,"previous_names":["haiderabb/travisor-backend"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2FTraVisor-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2FTraVisor-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2FTraVisor-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HaiderABB%2FTraVisor-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HaiderABB","download_url":"https://codeload.github.com/HaiderABB/TraVisor-Backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079389,"owners_count":19744717,"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","bcryptjs","controllers","expressjs","hashing","html-emails","javascript","jsonwebtoken","jwt-authentication","middlewares","mongodb","mongoose","nodejs","nodemailer","postman","restful-api"],"created_at":"2024-11-08T21:08:18.836Z","updated_at":"2026-05-01T17:30:19.476Z","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%2FWingData-API","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHaiderABB%2FWingData-API","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHaiderABB%2FWingData-API/lists"}