Overview
Summary
Contact
Donate
Imprint
Prompt for the
PromotionApp
Please create a React-JS application for the PromotionModule. The application has to offer the following views for the user interface: 1. ProductAttributeValueView 2. PromotionView 3. PromotionProductView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The ProductAttributeValueView must contain the following fields: - name: Product type: Product - name: ProductAttribute type: Product - name: ValueBoolean type: BOOL - name: ValueNumber type: DOUBLE - name: ValueString type: STRING The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) The data source for the [ProductAttribute] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing ProductAttributeValue entity should be loaded from the relative URL: "/PromotionService/productattributevalue/{id}" (HTTP-GET) If a new ProductAttributeValue entity has been created, the new entity should be posted to the relative URL: "/PromotionService/productattributevalue" (HTTP-POST) If an existing ProductAttributeValue entity has been updated, the modified entity should be sent to the relative URL: "/PromotionService/productattributevalue/{id}" (HTTP-PUT) If an existing ProductAttributeValue entity has to be deleted, the following relative URL should be called: "/PromotionService/productattributevalue/{id}" (HTTP-DELETE) 2. The PromotionView must contain the following fields: - name: Code type: STRING - name: CreatedAt type: DATE - name: Description type: STRING - name: DiscountType type: STRING - name: DiscountValue type: DOUBLE - name: EndsAt type: DATE - name: IsActive type: BOOL - name: MaxRedemptions type: LONG - name: Name type: STRING - name: StartsAt type: DATE - name: UpdatedAt type: DATE An existing Promotion entity should be loaded from the relative URL: "/PromotionService/promotion/{id}" (HTTP-GET) If a new Promotion entity has been created, the new entity should be posted to the relative URL: "/PromotionService/promotion" (HTTP-POST) If an existing Promotion entity has been updated, the modified entity should be sent to the relative URL: "/PromotionService/promotion/{id}" (HTTP-PUT) If an existing Promotion entity has to be deleted, the following relative URL should be called: "/PromotionService/promotion/{id}" (HTTP-DELETE) 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/promotion/{id}" 3. The PromotionProductView must contain the following fields: - name: Product type: Product - name: Promotion type: Promotion The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) The data source for the [Promotion] select control should be loaded from the relative URL: "/PromotionService/promotion" (HTTP-GET) An existing PromotionProduct entity should be loaded from the relative URL: "/PromotionService/promotionproduct/{id}" (HTTP-GET) If a new PromotionProduct entity has been created, the new entity should be posted to the relative URL: "/PromotionService/promotionproduct" (HTTP-POST) If an existing PromotionProduct entity has been updated, the modified entity should be sent to the relative URL: "/PromotionService/promotionproduct/{id}" (HTTP-PUT) If an existing PromotionProduct entity has to be deleted, the following relative URL should be called: "/PromotionService/promotionproduct/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint