Testing
Full model test
Test all database models by creating dummy data in a transaction
GET
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
Success message confirming test completion
Object containing IDs of all created records