๐Ÿ”Œ Mangochi M&E API

RESTful API for Village Action Plans and Monitoring & Evaluation Platform

โšก API Status
Checking...
REST API Endpoint
๐Ÿ—„๏ธ Database
Checking...
MySQL Connection
๐Ÿ“ง Email Service
Checking...
SMTP Configuration

๐Ÿš€ Quick Start

Base URL for all API requests:

// Development const API_URL = "http://localhost/mango/backend/api"; // Production const API_URL = "https://mangochi-dc.org/api";

๐Ÿ“‹ Features

  • RESTful architecture
  • JSON responses
  • Token-based auth
  • CORS enabled
  • Rate limiting

๐Ÿ”’ Authentication

  • Bearer token required
  • Email verification
  • Password reset
  • Role-based access
  • Session management

๐Ÿ” Authentication Endpoints

POST /auth/register Public

Register a new user account with email verification

{ "name": "John Doe", "email": "john@example.com", "password": "SecurePass123", "role_id": 2, "district_id": 1, "sector_id": 3, "privacy_accepted": 1 }
POST /auth/login Public

Authenticate user and receive access token

{ "email": "john@example.com", "password": "SecurePass123" }
POST /auth/verify-email Public

Verify user email address with token

POST /auth/forgot-password Public

Request password reset email

POST /auth/reset-password Public

Reset password with token

GET /auth/me Auth Required

Get current authenticated user details

๐Ÿ˜๏ธ Geographic Data Endpoints

GET /districts Public

Get all districts in Mangochi

GET /sectors Public

Get all development sectors (15 sectors)

๐Ÿงช Test API Connection

Click the button below to test the API and database connectivity: