{"id":29327926,"url":"https://github.com/harshitvarshneyv/travel-api-using-resttemplate","last_synced_at":"2026-04-16T18:03:13.467Z","repository":{"id":303106534,"uuid":"1013926220","full_name":"HarshitVarshneyv/Travel-API-Using-RestTemplate","owner":"HarshitVarshneyv","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-30T11:36:14.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T12:27:12.175Z","etag":null,"topics":["api","api-integration","java","javascript","mvc-architecture","reactjs","restful-api","resttemplate"],"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/HarshitVarshneyv.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,"zenodo":null}},"created_at":"2025-07-04T17:50:46.000Z","updated_at":"2025-07-30T11:36:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a82487d-703c-4adc-bd53-076699c3153f","html_url":"https://github.com/HarshitVarshneyv/Travel-API-Using-RestTemplate","commit_stats":null,"previous_names":["harshitvarshneyv/travel-api-using-resttemplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HarshitVarshneyv/Travel-API-Using-RestTemplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshitVarshneyv%2FTravel-API-Using-RestTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshitVarshneyv%2FTravel-API-Using-RestTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshitVarshneyv%2FTravel-API-Using-RestTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshitVarshneyv%2FTravel-API-Using-RestTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HarshitVarshneyv","download_url":"https://codeload.github.com/HarshitVarshneyv/Travel-API-Using-RestTemplate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HarshitVarshneyv%2FTravel-API-Using-RestTemplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31897870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T17:33:00.867Z","status":"ssl_error","status_checked_at":"2026-04-16T17:32:57.401Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","api-integration","java","javascript","mvc-architecture","reactjs","restful-api","resttemplate"],"created_at":"2025-07-07T21:24:16.525Z","updated_at":"2026-04-16T18:03:13.461Z","avatar_url":"https://github.com/HarshitVarshneyv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MyBiz Travel Request API Integration (Spring Boot)\n[Note : This is the project in which the main focus is calling the external api through RestTemplate of Make my trip i.e, request goes to one server to another server ].\n\nThis project integrates with MakeMyTrip's **myBiz Travel Request API**, enabling seamless travel requisition, approval, and booking synchronization between a third-party platform and myBiz.\n \n---\n\n## 🚀 Features\n\n* Create travel requests and redirect users to myBiz\n* Receive itineraries pushed by myBiz\n* Send approval/rejection of services\n* Receive booking details \u0026 vouchers after successful booking\n\n---\n\n## 📁 Project Structure\n\n```\ncom.example.travelintegration\n└── config\n    └── RestTemplateConfig.java\n└── controller\n    └── TravelController.java\n└── service\n    └── TravelService.java\n     └── TravelServiceImpl.java\n└── dto\n    ├── TravelRequest.java\n    ├── ApprovalRequest.java\n    ├── BookingPushPayload.java\n    └── ItineraryPushPayload.java\n```\n\n---\n\n## ⚙️ Configuration\n\nUpdate your `application.properties`:\n\n```properties\nmybiz.api.key=your-partner-api-key\nmybiz.client.code=your-client-code\n```\n\n---\n\n## 🔗 API Endpoints\n\n### 1. Create Travel Request\n\n```\nPOST /api/travel/create-itinerary\n```\n\n* Sends trip data to myBiz\n* Receives requisitionId and redirect URL\n\n### 2. Receive Itinerary Push (from myBiz)\n\n```\nPOST /api/travel/receive-itinerary\n```\n\n* myBiz calls this with full itinerary JSON after request creation\n\n### 3. Send Approval\n\n```\nPUT /api/travel/send-approval\n```\n\n* Sends manager-level approvals or rejections\n\n### 4. Receive Booking Details\n\n```\nPOST /api/travel/receive-booking\n```\n\n* Receives booking info \u0026 vouchers after myBiz confirms booking\n\n---\n\n## 🧰 Technologies Used\n\n* Java 17+\n* Spring Boot 3+\n* Spring Web (RestTemplate)\n* Lombok\n\n---\n\n## 📦 Sample Payloads\n\nSample DTOs for each API interaction are defined in the `dto` package. Refer to:\n\n* `TravelRequest` for outbound travel initiation\n* `ItineraryPushPayload` for receiving itinerary\n* `ApprovalRequest` to send approvals\n* `BookingPushPayload` for booking data\n\n---\n\n## ✅ Running the App\n\n1. Clone the repo\n2. Add your credentials to `application.properties`\n3. Run the Spring Boot application\n4. Use Postman or your frontend to test the APIs\n---\n## 🙋 Support\n\nRaise an issue or reach out if you need help customizing the integration.\n\nContact =\u003e Email : harshitvarshneyv2@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshitvarshneyv%2Ftravel-api-using-resttemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharshitvarshneyv%2Ftravel-api-using-resttemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharshitvarshneyv%2Ftravel-api-using-resttemplate/lists"}