Skip to main content
GET
This endpoint is for testing purposes only. It creates dummy data across all models using a database transaction.

Overview

This endpoint tests all Shop models by creating interconnected dummy data within a single MongoDB transaction. If any creation fails, the entire transaction is rolled back.

Models tested

The endpoint creates test records for the following models:
  • User - Test user account
  • Category - Product category
  • Product - Shop product
  • Promotion - Product promotion/discount
  • File - Product file attachment
  • BlogPost - Blog post content
  • EditHistory - Blog edit tracking
  • Cart - Shopping cart
  • Order - Customer order
  • OrderItem - Order line items
  • Transaction - Payment transaction
  • Subscription - User subscription
  • Review - Product review
  • Notification - User notification
  • SupportTicket - Customer support ticket

Response

string
Success message confirming test completion
object
Object containing IDs of all created records