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: Description type: STRING - name: DiscountType type: STRING - name: DiscountValue type: STRING - name: EndDate type: DATE - name: IsActive type: BOOL - name: MinimumOrderAmount type: STRING - name: Name type: STRING - name: Restaurant type: Restaurant - name: StartDate type: DATE The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) An existing Promotion entity should be loaded from the relative URL: "/RestaurantService/promotion/{id}" (HTTP-GET) If a new Promotion entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/promotion" (HTTP-POST) If an existing Promotion entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/promotion/{id}" (HTTP-PUT) If an existing Promotion entity has to be deleted, the following relative URL should be called: "/RestaurantService/promotion/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PromotionMenuItemLink columns: - column: Promotion - column: MenuItem The table should have the title "PromotionMenuItemLinks" und the data must be loaded from the server with the following relative URL: "/MenuItemService/promotionmenuitemlink/promotion/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint