This demo app provides both HTML forms and JSON API endpoints for testing your dynamic correlation plugin.
HTML Pages (for manual testing)
- Login Form
- Products Catalog
- Checkout Process (session required)
- Authenticated Dashboard (session required)
API Endpoints (for testing)
POST /api/login
Body:
Returns:
Body:
{"username": "testuser1", "password": "123"}Returns:
session_token for correlation
GET /api/products
Optional:
Returns: List of products with IDs for correlation
Optional:
?category=ElectronicsReturns: List of products with IDs for correlation
GET /api/products/{product_id}
Example:
Returns: Individual product details with enhanced data
Example:
/api/products/1Returns: Individual product details with enhanced data
POST /api/user/profile
Body:
Returns: User profile data (auth via request body, not headers)
Body:
{"session_token": "...", "user_id": 1, "correlation_id": "..."}Returns: User profile data (auth via request body, not headers)
POST /api/cart/add
Body:
Returns: Cart item details (auth via request body, not headers)
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:
Returns: Order confirmation (all correlation data required in body)
Body:
{"session_token": "...", "user_id": 1, "correlation_id": "...", "checkout_token": "..."}Returns: Order confirmation (all correlation data required in body)
POST /api/orders
Headers:
Body:
Returns:
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
Returns: Order details and tracking info
POST /api/http-test
Body:
Returns: Plain HTTP text response (not JSON) with Step 2 token for next step
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:
Returns: Plain HTTP text response (not JSON) - Requires Step 2 token from Step 1!
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
- testuser1 / password: 123
- testuser2 / password: 456
- adminuser / password: 789