Overview
Summary
Contact
Donate
Imprint
Prompt for the
ProductApp
Please create a React-JS application for the ProductModule. The application has to offer the following views for the user interface: 1. AnswerView 2. BrandView 3. BrowseEventView 4. ProductView 5. QuestionView 6. SellerView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 6 views are defined below. 1. The AnswerView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: Customer type: Customer - name: Question type: Question - name: Seller type: Seller The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [Question] select control should be loaded from the relative URL: "/ProductService/question" (HTTP-GET) The data source for the [Seller] select control should be loaded from the relative URL: "/ProductService/seller" (HTTP-GET) An existing Answer entity should be loaded from the relative URL: "/ProductService/answer/{id}" (HTTP-GET) If a new Answer entity has been created, the new entity should be posted to the relative URL: "/ProductService/answer" (HTTP-POST) If an existing Answer entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/answer/{id}" (HTTP-PUT) If an existing Answer entity has to be deleted, the following relative URL should be called: "/ProductService/answer/{id}" (HTTP-DELETE) 2. The BrandView must contain the following fields: - name: CreatedAt type: DATE - name: Name type: STRING - name: UpdatedAt type: DATE An existing Brand entity should be loaded from the relative URL: "/ProductService/brand/{id}" (HTTP-GET) If a new Brand entity has been created, the new entity should be posted to the relative URL: "/ProductService/brand" (HTTP-POST) If an existing Brand entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/brand/{id}" (HTTP-PUT) If an existing Brand entity has to be deleted, the following relative URL should be called: "/ProductService/brand/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Product columns: - column: Brand - column: Title - column: Description - column: UpdatedAt - column: CreatedAt - column: IsActive - column: Sku The table should have the title "Products" und the data must be loaded from the server with the following relative URL: "/ProductService/product/brand/{id}" 3. The BrowseEventView must contain the following fields: - name: Customer type: Customer - name: EventType type: STRING - name: IpAddress type: STRING - name: OccurredAt type: DATE - name: Offer type: Offer - name: Product type: Product - name: SessionId type: STRING - name: UserAgent type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [Offer] select control should be loaded from the relative URL: "/OfferService/offer" (HTTP-GET) The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing BrowseEvent entity should be loaded from the relative URL: "/ProductService/browseevent/{id}" (HTTP-GET) If a new BrowseEvent entity has been created, the new entity should be posted to the relative URL: "/ProductService/browseevent" (HTTP-POST) If an existing BrowseEvent entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/browseevent/{id}" (HTTP-PUT) If an existing BrowseEvent entity has to be deleted, the following relative URL should be called: "/ProductService/browseevent/{id}" (HTTP-DELETE) 4. The ProductView must contain the following fields: - name: Brand type: Brand - name: CreatedAt type: DATE - name: Description type: STRING - name: IsActive type: BOOL - name: Sku type: STRING - name: Title type: STRING - name: UpdatedAt type: DATE The data source for the [Brand] select control should be loaded from the relative URL: "/ProductService/brand" (HTTP-GET) An existing Product entity should be loaded from the relative URL: "/ProductService/product/{id}" (HTTP-GET) If a new Product entity has been created, the new entity should be posted to the relative URL: "/ProductService/product" (HTTP-POST) If an existing Product entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/product/{id}" (HTTP-PUT) If an existing Product entity has to be deleted, the following relative URL should be called: "/ProductService/product/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Question columns: - column: Title - column: CreatedAt - column: Body - column: Product - column: Customer The table should have the title "Questions" und the data must be loaded from the server with the following relative URL: "/ProductService/question/product/{id}" Add a HTML table to the view with the following WishlistItem columns: - column: AddedAt - column: Wishlist - column: Product The table should have the title "WishlistItems" und the data must be loaded from the server with the following relative URL: "/WishlistService/wishlistitem/product/{id}" Add a HTML table to the view with the following OrderItem columns: - column: Offer - column: LineTotal - column: UnitPrice - column: Quantity - column: DiscountAmount - column: ProductTitle - column: CustomerOrder - column: TaxAmount The table should have the title "OrderItems" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/orderitem/producttitle/{id}" Add a HTML table to the view with the following Offer columns: - column: Seller - column: IsActive - column: UpdatedAt - column: IsPrimeEligible - column: Currency - column: SkuSeller - column: Product - column: Condition - column: Price - column: CreatedAt The table should have the title "Offers" und the data must be loaded from the server with the following relative URL: "/OfferService/offer/product/{id}" Add a HTML table to the view with the following BrowseEvent columns: - column: OccurredAt - column: UserAgent - column: SessionId - column: EventType - column: IpAddress - column: Product - column: Customer - column: Offer The table should have the title "BrowseEvents" und the data must be loaded from the server with the following relative URL: "/ProductService/browseevent/product/{id}" Add a HTML table to the view with the following ProductImage columns: - column: AltText - column: SortOrder - column: CreatedAt - column: IsMain - column: Product - column: Url The table should have the title "ProductImages" und the data must be loaded from the server with the following relative URL: "/WishlistService/productimage/product/{id}" Add a HTML table to the view with the following ProductAttributeValue columns: - column: ProductAttribute - column: Product - column: ValueNumber - column: ValueBoolean - column: ValueString The table should have the title "ProductAttributeValues" und the data must be loaded from the server with the following relative URL: "/PromotionService/productattributevalue/productattribute/{id}" Add a HTML table to the view with the following ProductAttributeValue columns: - column: ProductAttribute - column: Product - column: ValueNumber - column: ValueBoolean - column: ValueString The table should have the title "ProductAttributeValues" und the data must be loaded from the server with the following relative URL: "/PromotionService/productattributevalue/product/{id}" Add a HTML table to the view with the following ProductCategory columns: - column: Category - column: IsPrimary - column: Product The table should have the title "ProductCategorys" und the data must be loaded from the server with the following relative URL: "/CategoryService/productcategory/product/{id}" Add a HTML table to the view with the following PromotionProduct columns: - column: Product - column: Promotion The table should have the title "PromotionProducts" und the data must be loaded from the server with the following relative URL: "/PromotionService/promotionproduct/product/{id}" Add a HTML table to the view with the following Review columns: - column: Body - column: IsVerifiedPurchase - column: Customer - column: Rating - column: UpdatedAt - column: Product - column: Title - column: CreatedAt The table should have the title "Reviews" und the data must be loaded from the server with the following relative URL: "/CustomerService/review/product/{id}" 5. The QuestionView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: Customer type: Customer - name: Product type: Product - name: Title type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing Question entity should be loaded from the relative URL: "/ProductService/question/{id}" (HTTP-GET) If a new Question entity has been created, the new entity should be posted to the relative URL: "/ProductService/question" (HTTP-POST) If an existing Question entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/question/{id}" (HTTP-PUT) If an existing Question entity has to be deleted, the following relative URL should be called: "/ProductService/question/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Answer columns: - column: Body - column: Customer - column: Question - column: CreatedAt - column: Seller The table should have the title "Answers" und the data must be loaded from the server with the following relative URL: "/ProductService/answer/question/{id}" 6. The SellerView must contain the following fields: - name: CreatedAt type: DATE - name: DefaultAddress type: LONG - name: Email type: STRING - name: IsActive type: BOOL - name: LegalName type: STRING - name: Name type: STRING - name: Phone type: STRING - name: UpdatedAt type: DATE An existing Seller entity should be loaded from the relative URL: "/ProductService/seller/{id}" (HTTP-GET) If a new Seller entity has been created, the new entity should be posted to the relative URL: "/ProductService/seller" (HTTP-POST) If an existing Seller entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/seller/{id}" (HTTP-PUT) If an existing Seller entity has to be deleted, the following relative URL should be called: "/ProductService/seller/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Answer columns: - column: Body - column: Customer - column: Question - column: CreatedAt - column: Seller The table should have the title "Answers" und the data must be loaded from the server with the following relative URL: "/ProductService/answer/seller/{id}" Add a HTML table to the view with the following Offer columns: - column: Seller - column: IsActive - column: UpdatedAt - column: IsPrimeEligible - column: Currency - column: SkuSeller - column: Product - column: Condition - column: Price - column: CreatedAt The table should have the title "Offers" und the data must be loaded from the server with the following relative URL: "/OfferService/offer/seller/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint