Overview
Summary
Contact
Donate
Imprint
Prompt for the
SubscriptionPlanApp
Please create a React-JS application for the SubscriptionPlanModule. The application has to offer the following views for the user interface: 1. PromotionView 2. PromotionSubscriptionPlanView 3. SubscriptionPlanView 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 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}" 2. The PromotionSubscriptionPlanView must contain the following fields: - name: Promotion type: Promotion - name: SubscriptionPlan type: SubscriptionPlan The data source for the [SubscriptionPlan] select control should be loaded from the relative URL: "/SubscriptionPlanService/subscriptionplan" (HTTP-GET) The data source for the [Promotion] select control should be loaded from the relative URL: "/SubscriptionPlanService/promotion" (HTTP-GET) An existing PromotionSubscriptionPlan entity should be loaded from the relative URL: "/SubscriptionPlanService/promotionsubscriptionplan/{id}" (HTTP-GET) If a new PromotionSubscriptionPlan entity has been created, the new entity should be posted to the relative URL: "/SubscriptionPlanService/promotionsubscriptionplan" (HTTP-POST) If an existing PromotionSubscriptionPlan entity has been updated, the modified entity should be sent to the relative URL: "/SubscriptionPlanService/promotionsubscriptionplan/{id}" (HTTP-PUT) If an existing PromotionSubscriptionPlan entity has to be deleted, the following relative URL should be called: "/SubscriptionPlanService/promotionsubscriptionplan/{id}" (HTTP-DELETE) 3. The SubscriptionPlanView must contain the following fields: - name: AnnualPrice type: STRING - name: Currency type: STRING - name: Description type: STRING - name: IsPrimeBundle type: BOOL - name: IsStudentEligible type: BOOL - name: MonthlyPrice type: STRING - name: Name type: STRING An existing SubscriptionPlan entity should be loaded from the relative URL: "/SubscriptionPlanService/subscriptionplan/{id}" (HTTP-GET) If a new SubscriptionPlan entity has been created, the new entity should be posted to the relative URL: "/SubscriptionPlanService/subscriptionplan" (HTTP-POST) If an existing SubscriptionPlan entity has been updated, the modified entity should be sent to the relative URL: "/SubscriptionPlanService/subscriptionplan/{id}" (HTTP-PUT) If an existing SubscriptionPlan entity has to be deleted, the following relative URL should be called: "/SubscriptionPlanService/subscriptionplan/{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/subscriptionplan/{id}" Add a HTML table to the view with the following Subscription columns: - column: EndDate - column: StartDate - column: AutoRenew - column: User - column: Status - column: SubscriptionPlan The table should have the title "Subscriptions" und the data must be loaded from the server with the following relative URL: "/SeasonService/subscription/subscriptionplan/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint