{"id":20047424,"url":"https://github.com/balakrish001/travel-guide-basic-api","last_synced_at":"2026-06-29T12:31:29.763Z","repository":{"id":257719586,"uuid":"859125982","full_name":"Balakrish001/Travel-Guide-Basic-API","owner":"Balakrish001","description":"Travel Guide : Making API call with Fetch","archived":false,"fork":false,"pushed_at":"2024-09-18T06:17:35.000Z","size":191,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T08:39:33.070Z","etag":null,"topics":["css-in-js","fetch-api","html-css-javascript","loader"],"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/Balakrish001.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-09-18T06:10:53.000Z","updated_at":"2024-09-18T06:17:39.000Z","dependencies_parsed_at":"2024-09-18T08:42:49.248Z","dependency_job_id":"482f306e-d66b-439b-9b08-29689cfe91b5","html_url":"https://github.com/Balakrish001/Travel-Guide-Basic-API","commit_stats":null,"previous_names":["balakrish001/travel-guide-basic-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Balakrish001/Travel-Guide-Basic-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FTravel-Guide-Basic-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FTravel-Guide-Basic-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FTravel-Guide-Basic-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FTravel-Guide-Basic-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Balakrish001","download_url":"https://codeload.github.com/Balakrish001/Travel-Guide-Basic-API/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Balakrish001%2FTravel-Guide-Basic-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34927675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"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":["css-in-js","fetch-api","html-css-javascript","loader"],"created_at":"2024-11-13T11:36:12.612Z","updated_at":"2026-06-29T12:31:29.743Z","avatar_url":"https://github.com/Balakrish001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"The goal of this coding exam is to quickly get you off the ground with **Making API call with Fetch**\n\n### Refer to the image below:\n\n\u003cbr/\u003e\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"https://assets.ccbp.in/frontend/content/react-js/travel-guide-output.gif\" alt=\"travel-guide-desktop-output\" style=\"max-width:70%;box-shadow:0 2.8px 2.2px rgba(0, 0, 0, 0.12)\"\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\n\n### Design Files\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- [Medium (Size \u003e= 768px), Large (Size \u003e= 992px) and Extra Large (Size \u003e= 1200px)](https://assets.ccbp.in/frontend/content/react-js/travel-guide-lg-output.png)\n\n\u003c/details\u003e\n\n### Set Up Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n- Download dependencies by running `npm install`\n- Start up the app using `npm start`\n\u003c/details\u003e\n\n### Completion Instructions\n\n\u003cdetails\u003e\n\u003csummary\u003eFunctionality to be added\u003c/summary\u003e\n\u003cbr/\u003e\nThe app must have the following functionalities\n\nWhen the app is opened initially,\n\n- An HTTP GET request should be made to **travelGuidePackagesApiUrl**\n- **\u003ci\u003eloader\u003c/i\u003e** should be displayed while fetching the data\n- If the HTTP GET request made is successful, the list of packages should be displayed\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eAPI Requests \u0026 Responses\u003c/summary\u003e\n\u003cbr/\u003e\n\n**travelGuidePackagesApiUrl**\n\n**API**: `https://apis.ccbp.in/tg/packages`\n\n**Method**: `GET`\n\n**Description**:\n\nReturns a response containing the list of packages\n\n**Response**\n\n```json\n\n{\n    \"packages\":[\n        {\n        \"id\":1,\n        \"name\":\"Best of Paris in 7 days tour\",\n        \"image_url\":\"https://assets.ccbp.in/frontend/react-js/travel-guide/paris-img.png\",\n        \"description\":\"Paris, France capital, is a major European city and a global centre for art, fashion, gastronomy, and culture. Its 19th-century cityscape is crisscrossed by wide boulevards and the River Seine.\"\n        },\n        ...\n   ],\n}\n\n```\n\n\u003c/details\u003e\n\n### Important Note\n\n\u003cdetails\u003e\n\u003csummary\u003eClick to view\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n**The following instructions are required for the tests to pass**\n\n- The image in each package item should have the alt as the value of the key `name` from each package object in the packages list\n- Wrap the Loader component with an HTML container element and add the `data-testid` attribute value as `loader` to it as shown below\n\n```jsx\n\u003cdiv data-testid=\"loader\"\u003e\n  \u003cLoader type=\"TailSpin\" color=\"#00BFFF\" height={50} width={50} /\u003e\n\u003c/div\u003e\n```\n\n\u003c/details\u003e\n\n### Resources\n\n\u003cdetails\u003e\n\u003csummary\u003eColors\u003c/summary\u003e\n\n\u003cbr/\u003e\n\n\u003cdiv style=\"background-color: #eef4f7; width: 150px; padding: 10px; color: black\"\u003eHex: #eef4f7\u003c/div\u003e\n\u003cdiv style=\"background-color: #334155; width: 150px; padding: 10px; color: white\"\u003eHex: #334155\u003c/div\u003e\n\u003cdiv style=\"background-color: #52bbf0; width: 150px; padding: 10px; color: black\"\u003eHex: #52bbf0\u003c/div\u003e\n\u003cdiv style=\"background-color: #ffffff; width: 150px; padding: 10px; color: black\"\u003eHex: #ffffff\u003c/div\u003e\n\u003cdiv style=\"background-color: #475569; width: 150px; padding: 10px; color: white\"\u003eHex: #475569\u003c/div\u003e\n\u003cdiv style=\"background-color: #64748b; width: 150px; padding: 10px; color: white\"\u003eHex: #64748b\u003c/div\u003e\n\u003cbr/\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eFont-families\u003c/summary\u003e\n\n- Roboto\n\n\u003c/details\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Ftravel-guide-basic-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalakrish001%2Ftravel-guide-basic-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalakrish001%2Ftravel-guide-basic-api/lists"}