Overview
Summary
Contact
Donate
Imprint
Prompt for the
SubscriptionView
Please create a React-JS view called "SubscriptionView" for the fields of the Subscription entity. The SubscriptionView must contain the following fields: - name: AutoRenew type: BOOL - name: EndDate type: DATE - name: StartDate type: DATE - name: Status type: STRING - name: SubscriptionPlan type: SubscriptionPlan - name: User type: User The data source for the [SubscriptionPlan] select control should be loaded from the relative URL: "/SubscriptionPlanService/subscriptionplan" (HTTP-GET) The data source for the [User] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) An existing Subscription entity should be loaded from the relative URL: "/SeasonService/subscription/{id}" (HTTP-GET) If a new Subscription entity has been created, the new entity should be posted to the relative URL: "/SeasonService/subscription" (HTTP-POST) If an existing Subscription entity has been updated, the modified entity should be sent to the relative URL: "/SeasonService/subscription/{id}" (HTTP-PUT) If an existing Subscription entity has to be deleted, the following relative URL should be called: "/SeasonService/subscription/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Payment columns: - column: Status - column: Amount - column: PaidAt - column: Currency - column: User - column: Subscription - column: Description - column: PaymentMethod The table should have the title "Payments" und the data must be loaded from the server with the following relative URL: "/UserService/payment/subscription/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint