LoadMagic.AI

LoadMagic Test Demo

Dark mode experience for LoadMagic.AI correlation flows

This demo app provides both HTML forms and JSON API endpoints for testing your dynamic correlation plugin.

HTML Pages (for manual testing)

API Endpoints (for testing)

POST /api/login
Body: {"username": "testuser1", "password": "123"}
Returns: session_token for correlation
GET /api/products
Optional: ?category=Electronics
Returns: List of products with IDs for correlation
GET /api/products/{product_id}
Example: /api/products/1
Returns: Individual product details with enhanced data
POST /api/user/profile
Body: {"session_token": "...", "user_id": 1, "correlation_id": "..."}
Returns: User profile data (auth via request body, not headers)
POST /api/cart/add
Body: {"product_id": 1, "session_token": "...", "user_id": 1, "correlation_id": "..."}
Returns: Cart item details (auth via request body, not headers)
POST /api/checkout/process
Body: {"session_token": "...", "user_id": 1, "correlation_id": "...", "checkout_token": "..."}
Returns: Order confirmation (all correlation data required in body)
POST /api/orders
Headers: Authorization: Bearer {session_token}
Body: {"product_ids": [1,2], "quantities": [1,2]}
Returns: order_token for correlation
GET /api/orders/{order_token}
Returns: Order details and tracking info
POST /api/http-test
Body: {"session_token": "...", "user_id": 1, "correlation_id": "...", "test_message": "Hello!"}
Returns: Plain HTTP text response (not JSON) with Step 2 token for next step
POST /api/http-test-step2
Body: {"session_token": "...", "user_id": 1, "correlation_id": "...", "step2_token": "..."}
Returns: Plain HTTP text response (not JSON) - Requires Step 2 token from Step 1!

Test Users