Documentation Index
Fetch the complete documentation index at: https://mintlify.com/astrxnomo/tourify/llms.txt
Use this file to discover all available pages before exploring further.
Resource hierarchy
Tourify organises its content as a three-level hierarchy:Cities
GET /api/cities
Returns all cities ordered alphabetically, each with their associated images.GET /api/cities/
Returns a single city with full nested data: its images, all places (with images, category, and average rating), and all events (with images and associated place).Categories
GET /api/categories
Returns all categories ordered alphabetically.GET /api/categories/
Returns a single category with all its places. Each place includes images, the city it belongs to, and anaverage_rating computed from its reviews.
Places
GET /api/places
Returns all places, optionally filtered. Results include images, city, category, and anaverage_rating field. The list is sorted by average_rating descending — highest-rated places appear first.
Query parameters
Filter places to a specific city. Pass the numeric city ID (e.g.
city_id=1).Filter places to a specific category. Pass the numeric category ID (e.g.
category_id=3).Full-text search across the place name, address, and city name. The search is case-insensitive and uses a
LIKE %term% match.Response (200)
GET /api/places/
Returns a single place with complete detail. The response includes:| Field | Description |
|---|---|
images | All images associated with this place via the polymorphic imageable relationship |
city | The parent city object |
category | The parent category object |
reviews | All reviews, each including the user who wrote it |
average_rating | Arithmetic mean of all review ratings, rounded to 1 decimal place |
Sorting logic
TheGET /api/places endpoint sorts results by reviews_avg_rating in descending order before returning the collection. This means the best-rated places always appear at the top of the list, regardless of other applied filters.
PlaceController.php (excerpt)
average_rating of 0.0 and appear at the end.