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: DiscountPercent type: STRING - name: EligibleForNewUsersOnly type: BOOL - name: EndDate type: DATE - name: Name type: STRING - name: StartDate type: DATE An existing Promotion entity should be loaded from the relative URL: "/SubscriptionPlanService/promotion/{id}" (HTTP-GET) If a new Promotion entity has been created, the new entity should be posted to the relative URL: "/SubscriptionPlanService/promotion" (HTTP-POST) If an existing Promotion entity has been updated, the modified entity should be sent to the relative URL: "/SubscriptionPlanService/promotion/{id}" (HTTP-PUT) If an existing Promotion entity has to be deleted, the following relative URL should be called: "/SubscriptionPlanService/promotion/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PromotionSubscriptionPlan columns: - column: SubscriptionPlan - column: Promotion The table should have the title "PromotionSubscriptionPlans" und the data must be loaded from the server with the following relative URL: "/SubscriptionPlanService/promotionsubscriptionplan/promotion/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint