🏛️ Legal Hub Flask API Tester

Server: Checking...

🔐 Step 1: Login

👤 Step 2: Get User Info

📄 Step 3: Documents

Create New Document:

📖 Instructions

  1. Login: Click "Login" with the default credentials
  2. Copy Token: Your JWT token will appear after successful login
  3. Test APIs: Use the buttons above to test different endpoints
  4. External Tools: Copy the token to use with Postman, curl, or other tools

🔧 Example curl commands:

# Login curl -X POST http://localhost:5001/api/auth/login \ -H "Content-Type: application/json" \ -d '{"email":"admin@example.com","password":"password123"}' # Get Documents (replace YOUR_TOKEN) curl -X GET http://localhost:5001/api/documents \ -H "Authorization: Bearer YOUR_TOKEN"