Document Management System - API Test

1. Testing Database Connection

✅ Database connection successful!

Users in database: 1

Company: Default Company (ID: 1)

2. Testing Login API

Use this curl command to test:

curl -X POST https://yourdomain.com/doc_management_system/api/index.php?action=login \
  -H 'Content-Type: application/json' \
  -d '{"email":"admin@system.com","password":"admin123"}'

3. Testing Get Folders API

curl -X GET 'https://yourdomain.com/doc_management_system/api/index.php?action=get_folders&user_id=1&company_id=1'

Login Credentials

Email: admin@system.com

Password: admin123