The Nearby Hostels API provides endpoints to interact with the system’s backend. Below is a detailed breakdown of the available endpoints.
GET /api/hostels
Fetch all active hostels along with ratings and images.
Example Response:
[ { "id": 1, "name": "Backpacker Haven", "location": "City Center", "ratings": 4.5, "description": "A friendly, budget-friendly hostel for solo travelers." } ]
There was an error while loading. Please reload this page.