Skip to content

4) API Documentation

SHADIL AM edited this page Jul 20, 2025 · 1 revision

API Documentation

The Nearby Hostels API provides endpoints to interact with the system’s backend. Below is a detailed breakdown of the available endpoints.

Hostels API

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."
  }
]

Clone this wiki locally