FoodHubs API Documentation

Endpoints:
  • GET /api/v1.0/chowhubs/services: Retrieve Services Welcome mesage.
  • GET /api/v1.0/chowhubs/generate-temp-token: Generate Public Tokens before Creating Users.
  • POST /api/v1.0/chowhubs/register: Register a new user. Parameters: full_name, email, password, address (optional), phone (optional).
  • POST /api/v1.0/chowhubs/login: User login. Parameters: email, password.
  • POST /api/v1.0/chowhubs/forgot-password: Request a password reset. Parameters: email.
  • DELETE /api/v1.0/chowhubs/users/{uuid}: Delete a user . Parameters: uuid.
Authentication:

For protected endpoints, include the user's token in the Authorization header Bearer Token: GENERATED TOKENS.

Examples:

User Registration:

            
                POST /api/v1.0/chowhubs/register
                Content-Type: "application/json"
                Authorization: Bearer GENERATED-TOKENS

                {
                    "full_name": "John Doe",
                    "email": "john@example.com",
                    "password": "secret123",
                    "address": "123 Main St",
                    "phone": "123-456-7890"
                }