Overview
Summary
Contact
Donate
Imprint
Prompt for the
PromotionView
Please create a React-JS view called "PromotionView" for the fields of the Promotion entity. 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}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint