{ "entities": { "Product": { "title": "Product", "description": "A tech product in the store", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the product" }, "description": { "type": "string", "description": "The product description" }, "price": { "type": "number", "description": "The price of the product" }, "imageUrl": { "type": "string", "format": "uri", "description": "The product image URL" }, "category": { "type": "string", "description": "The product category" }, "featured": { "type": "boolean", "description": "Whether the product is featured" }, "averageRating": { "type": "number", "description": "The average rating of the product" }, "reviewCount": { "type": "number", "description": "The number of reviews for the product" } }, "required": ["name", "description", "price", "imageUrl", "category"] }, "Review": { "title": "Review", "description": "A user review for a product", "type": "object", "properties": { "productId": { "type": "string", "description": "The ID of the product being reviewed" }, "userId": { "type": "string", "description": "The ID of the user who wrote the review" }, "userName": { "type": "string", "description": "The name of the user who wrote the review" }, "rating": { "type": "number", "description": "The star rating (1-5)" }, "text": { "type": "string", "description": "The review text" }, "createdAt": { "type": "string", "format": "date-time", "description": "When the review was created" } }, "required": ["productId", "userId", "rating", "text", "createdAt"] }, "CartItem": { "title": "CartItem", "description": "An item in a user's shopping cart", "type": "object", "properties": { "productId": { "type": "string", "description": "The ID of the product" }, "quantity": { "type": "number", "description": "The quantity of the product" }, "name": { "type": "string", "description": "The name of the product" }, "price": { "type": "number", "description": "The price of the product" }, "imageUrl": { "type": "string", "description": "The product image URL" } }, "required": ["productId", "quantity", "name", "price", "imageUrl"] } }, "firestore": { "/products/{productId}": { "schema": "Product", "description": "Collection of products" }, "/products/{productId}/reviews/{reviewId}": { "schema": "Review", "description": "Reviews for a specific product" }, "/users/{userId}/cart/{cartItemId}": { "schema": "CartItem", "description": "A user's shopping cart items" } } }