API Overview
Welcome to the Foodlify API v2.0 documentation. This API allows you to interact with the Foodlify platform, enabling features for customers, vendors, riders, and administrators.
Base URL:
http://127.0.0.1:8080/api/v2
Authentication
Most endpoints require endpoints to be authenticated using a JWT (JSON Web Token). Include the token
in the Authorization header.
Authorization: Bearer
Public Endpoints
Endpoints accessible without authentication (unless configured otherwise).
GET
/public/locations
Retrieve a list of supported locations.
curl -X GET http://127.0.0.1:8080/api/v2/public/locations
GET
/public/catalog/collections
Fetch curated food collections (e.g., "Trending", "Breakfast").
User Management
POST
/auth/register
Register a new user account.
| Parameter | Type | Description |
|---|---|---|
| string | User's email address | |
| password | string | Strong password |
| phone | string | Verified phone number |
Foodlify API