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: CancelledAt type: DATE - name: EndDate type: DATE - name: PaymentMethod type: PaymentMethod - name: StartDate type: DATE - name: Status type: STRING - name: SubscriptionPlan type: SubscriptionPlan - name: UserAccount type: UserAccount The data source for the [SubscriptionPlan] select control should be loaded from the relative URL: "/SubscriptionService/subscriptionplan" (HTTP-GET) The data source for the [PaymentMethod] select control should be loaded from the relative URL: "/SubscriptionService/paymentmethod" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Subscription entity should be loaded from the relative URL: "/SubscriptionService/subscription/{id}" (HTTP-GET) If a new Subscription entity has been created, the new entity should be posted to the relative URL: "/SubscriptionService/subscription" (HTTP-POST) If an existing Subscription entity has been updated, the modified entity should be sent to the relative URL: "/SubscriptionService/subscription/{id}" (HTTP-PUT) If an existing Subscription entity has to be deleted, the following relative URL should be called: "/SubscriptionService/subscription/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SubscriptionPayment columns: - column: Transaction - column: Subscription - column: ChargeDate - column: Amount - column: Status - column: Currency The table should have the title "SubscriptionPayments" und the data must be loaded from the server with the following relative URL: "/SubscriptionService/subscriptionpayment/subscription/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint