eBay-Style Marketplace Backend
Version : 1.1.10
ebaycClone is a comprehensive backend for an online marketplace supporting auctions and fixed-price sales of physical goods, with role-based access, public user registration, Stripe payments, notifications, and robust ownership enforcement.
How to Use Project Documents
The
Ebaycclone
project has been designed and generated using
Mindbricks, a powerful microservice-based backend
generation platform. All documentation is automatically produced
by the Mindbricks Genesis Engine, based on the
high-level architectural patterns defined by the user or inferred
by AI.
This documentation set is intended for both AI agents and human developers—including frontend and backend engineers—who need precise and structured information about how to interact with the backend services of this project. Each document reflects the live architecture of the system, providing a reliable reference for API consumption, data models, authentication flows, and business logic.
By following this documentation, developers can seamlessly integrate with the backend, while AI agents can use it to reason about the service structure, make accurate decisions, or even generate compatible client-side code.
Accessing Project Services
Each service generated by Mindbricks is exposed via a dedicated REST API endpoint. Every service documentation set includes the base URL of that service along with the specific API paths for each available route.
Before consuming any API, developers or agents must understand the service URL structure and environment-specific endpoints.
Service Endpoint Structure
| Environment | URL Pattern Example |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/auth-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/auth-api
|
| Production |
https://ebaycclone.mindbricks.co/auth-api
|
Replace
auth
with the actual service name as lower case (e.g.,
order-api,
bff-service, customermanagement-api etc.).
Environment Usage Notes
- Preview APIs become accessible after a project is previewed inside the Mindbricks platform. These are ideal for development and testing.
- Staging and Production APIs are only accessible after the project is deployed to cloud environments provisioned via Mindbricks.
- In some cases, the project owner may choose to deploy services on their own infrastructure. In such scenarios, the service base URLs will be custom and should be communicated manually by the project owner to developers or AI agents.
Frontend applications should be designed to easily switch between environments, allowing dynamic endpoint targeting for Preview, Staging, and Production.
Getting Started: Use the Auth Service First
Before interacting with other services in the
Ebaycclone
project,
AI agents and developers should begin by integrating with the
Auth Service.
Mindbricks automatically generates a dedicated authentication microservice based on the project’s authentication definitions provided by the architect. This service provides the essential user and access management foundation for the project.
Agents should first utilize the Auth Service to:
- Register and authenticate users (login)
- Manage users, roles, and permissions
- Handle user groups (if defined)
- Support multi-tenancy logic (if configured)
- Perform Policy-Based Access Control (PBAC), if activated by the architect
Auth Service Documentation
Use the following resources to understand and integrate the Auth Service:
-
REST API Guide – ideal for frontend and direct HTTP usage
https://ebaycclone.prw.mindbricks.com/document/auth-service/rest-api-guide -
Event Guide – helpful for event-driven or cross-service integrations
https://ebaycclone.prw.mindbricks.com/document/auth-service/event-guide -
Service Design Document – overall structure, patterns, and logic
https://ebaycclone.prw.mindbricks.com/document/auth-service/service-design
Note: For most frontend use cases, the REST API Guide will be the primary source. The Event Guide and Service Design documents are especially useful when integrating with other backend microservices or building systems that interact with the auth service indirectly.
Using the BFF (Backend-for-Frontend) Service
In Mindbricks, all backend services are designed with an advanced CQRS (Command Query Responsibility Segregation) architecture. Within this architecture, business services are responsible for managing their respective domains and ensuring the accuracy and freshness of domain data.
The BFF service complements these business services by providing a read-only aggregation and query layer tailored specifically for frontend and client-side applications.
Key Principles of the BFF Service
-
Elasticsearch Replicas for Fast Queries:
Each data object managed by a business service is automatically replicated as an Elasticsearch index, making it accessible for fast, frontend-oriented queries through the BFF. -
Cross-Service Data Aggregation:
The BFF offers an aggregation layer capable of combining data across multiple services, enabling complex filters, searches, and unified views of related data. -
Read-Only by Design:
The BFF service is strictly read-only. All create, update, or delete operations must be performed through the relevant business services, or via event-driven sagas if designed.
BFF Service Documentation
-
REST API Guide – querying aggregated and indexed data
https://ebaycclone.prw.mindbricks.com/document/bff-service/rest-api-guide -
Event Guide – syncing strategies across replicas
https://ebaycclone.prw.mindbricks.com/document/bff-service/event-guide -
Service Design – aggregation patterns and index structures
https://ebaycclone.prw.mindbricks.com/document/bff-service/service-design
Tip: Use the BFF service as the main entry point for all frontend data queries. It simplifies access, reduces round-trips, and ensures that data is shaped appropriately for the UI layer.
Business Services Overview
The
eBay-Style Marketplace Backend
project consists of multiple business services,
each responsible for managing a specific domain within the system.
These services expose their own REST APIs and documentation sets,
and are accessible based on the environment (Preview, Staging,
Production).
Usage Guidance
Business services are primarily designed to:
- Handle the state and operations of domain data
- Offer Create, Update, Delete operations over owned entities
-
Serve direct data queries (
get,list) for their own objects when needed
For advanced query needs across multiple services or aggregated views, prefer using the BFF service.
Available Business Services
auctionOffer Service
Description: Handles auction bids and fixed-price offers for product listings, enforces real-time auction state, handles strict offer workflows including counter-offers, and triggers domain events for bid/offer notifications. No payment or frontend aggregation logic included.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/auctionoffer-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/auctionoffer-api
|
| Production |
https://ebaycclone.mindbricks.co/auctionoffer-api
|
categoryManagement Service
Description: Handles product categories and subcategories for marketplace browsing and classification, supporting public discovery plus admin-only management.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/categorymanagement-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/categorymanagement-api
|
| Production |
https://ebaycclone.mindbricks.co/categorymanagement-api
|
messaging Service
Description: In-app messaging service for direct user-to-user text messages (buyers/sellers). Stores, retrieves, and manages user conversations. Launch version: text-only.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/messaging-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/messaging-api
|
| Production |
https://ebaycclone.mindbricks.co/messaging-api
|
notificationManagement Service
Description: Handles storage, management, and event-driven delivery of in-app and email notifications for user-impacting system events (bids, offers, orders, feedback, messaging, etc.). Supports marking notifications as read/unread, structured filtering by event type/channel, and always returns in-app notifications ordered by recency.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/notificationmanagement-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/notificationmanagement-api
|
| Production |
https://ebaycclone.mindbricks.co/notificationmanagement-api
|
searchIndexing Service
Description: Maintains the denormalized search index (materialized view) for global, public search across products, sellers, categories, and subcategories. Handles indexing in response to entity events and exposes optimized query endpoints for BFF/aggregator.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/searchindexing-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/searchindexing-api
|
| Production |
https://ebaycclone.mindbricks.co/searchindexing-api
|
adminModeration Service
Description: Administrative backend service for moderation and manual override actions. Responsible for logging all admin interventions (user/product/feedback/media/category/order/notification/searchindex moderation), triggering corrections via interservice calls, and providing comprehensive audit trails for compliance.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/adminmoderation-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/adminmoderation-api
|
| Production |
https://ebaycclone.mindbricks.co/adminmoderation-api
|
watchlistCart Service
Description: Handles user watchlists (with custom folders) and shopping cart preparation for checkout, strictly enforcing only fixed-price products in carts, supporting item moves/bulk operations, and robust default/folder logic..
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/watchlistcart-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/watchlistcart-api
|
| Production |
https://ebaycclone.mindbricks.co/watchlistcart-api
|
productListing Service
Description: Handles product listings (both auction and fixed-price), image/media storage with validations, enforces immutable type, soft-delete, and public product discovery.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/productlisting-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/productlisting-api
|
| Production |
https://ebaycclone.mindbricks.co/productlisting-api
|
orderManagement Service
Description: Handles all marketplace orders, manual checkout flows for fixed-price/offer/auction settlements, Stripe payment processing and webhook reconciliation, explicit status updates (shipping, delivery, cancellation), and feedback eligibility via orderItems.
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/ordermanagement-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/ordermanagement-api
|
| Production |
https://ebaycclone.mindbricks.co/ordermanagement-api
|
feedback Service
Description: Handles feedback for order items: one feedback per buyer/orderItem, attached to sellerId for analytical feedback/rating aggregation and reputation tracking. Enables querying feedbacks received/given for sellers and buyers. test
Documentation:
Base URL Examples:
| Environment | URL |
|---|---|
| Preview |
https://ebaycclone.prw.mindbricks.com/feedback-api
|
| Staging |
https://ebaycclone-stage.mindbricks.co/feedback-api
|
| Production |
https://ebaycclone.mindbricks.co/feedback-api
|
Conclusion
This documentation set provides a comprehensive guide for
understanding and consuming the
eBay-Style Marketplace Backend
backend, generated by the Mindbricks platform. It is structured to
support both AI agents and human developers in navigating
authentication, data access, service responsibilities, and system
architecture.
To summarize:
- Start with the Auth Service to manage users, roles, sessions, and permissions.
- Use the BFF Service for optimized, read-only data queries and cross-service aggregation.
- Refer to the Business Services when you need to manage domain-specific data or perform direct CRUD operations.
Each service offers a complete set of documentation—REST API guides, event interface definitions, and design insights—to help you integrate efficiently and confidently.
Whether you are building a frontend application, configuring an automation agent, or simply exploring the architecture, this documentation is your primary reference for working with the backend of this project.
For environment-specific access, ensure you're using the correct base URLs (Preview, Staging, Production), and coordinate with the project owner for any custom deployments.