Overview
Summary
Contact
Donate
Imprint
Prompt for the
GiftVoucherApp
Please create a React-JS application for the GiftVoucherModule. The application has to offer the following views for the user interface: 1. FoundationView 2. GiftRedemptionView 3. GiftVoucherView 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 FoundationView must contain the following fields: - name: EstablishedOn type: DATE - name: Name type: STRING - name: Organization type: Organization - name: Purpose type: STRING The data source for the [Organization] select control should be loaded from the relative URL: "/OrganizationService/organization" (HTTP-GET) An existing Foundation entity should be loaded from the relative URL: "/GiftVoucherService/foundation/{id}" (HTTP-GET) If a new Foundation entity has been created, the new entity should be posted to the relative URL: "/GiftVoucherService/foundation" (HTTP-POST) If an existing Foundation entity has been updated, the modified entity should be sent to the relative URL: "/GiftVoucherService/foundation/{id}" (HTTP-PUT) If an existing Foundation entity has to be deleted, the following relative URL should be called: "/GiftVoucherService/foundation/{id}" (HTTP-DELETE) 2. The GiftRedemptionView must contain the following fields: - name: AmountApplied type: STRING - name: Booking type: Booking - name: Currency type: STRING - name: GiftVoucher type: GiftVoucher - name: RedemptionDate type: DATE The data source for the [GiftVoucher] select control should be loaded from the relative URL: "/GiftVoucherService/giftvoucher" (HTTP-GET) The data source for the [Booking] select control should be loaded from the relative URL: "/CustomerService/booking" (HTTP-GET) An existing GiftRedemption entity should be loaded from the relative URL: "/GiftVoucherService/giftredemption/{id}" (HTTP-GET) If a new GiftRedemption entity has been created, the new entity should be posted to the relative URL: "/GiftVoucherService/giftredemption" (HTTP-POST) If an existing GiftRedemption entity has been updated, the modified entity should be sent to the relative URL: "/GiftVoucherService/giftredemption/{id}" (HTTP-PUT) If an existing GiftRedemption entity has to be deleted, the following relative URL should be called: "/GiftVoucherService/giftredemption/{id}" (HTTP-DELETE) 3. The GiftVoucherView must contain the following fields: - name: Code type: STRING - name: Currency type: STRING - name: ExpiryDate type: DATE - name: IsRedeemed type: BOOL - name: IssueDate type: DATE - name: PurchaserCustomer type: Customer - name: ValueAmount type: STRING The data source for the [PurchaserCustomer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing GiftVoucher entity should be loaded from the relative URL: "/GiftVoucherService/giftvoucher/{id}" (HTTP-GET) If a new GiftVoucher entity has been created, the new entity should be posted to the relative URL: "/GiftVoucherService/giftvoucher" (HTTP-POST) If an existing GiftVoucher entity has been updated, the modified entity should be sent to the relative URL: "/GiftVoucherService/giftvoucher/{id}" (HTTP-PUT) If an existing GiftVoucher entity has to be deleted, the following relative URL should be called: "/GiftVoucherService/giftvoucher/{id}" (HTTP-DELETE) Add a HTML table to the view with the following GiftRedemption columns: - column: RedemptionDate - column: Currency - column: AmountApplied - column: GiftVoucher - column: Booking The table should have the title "GiftRedemptions" und the data must be loaded from the server with the following relative URL: "/GiftVoucherService/giftredemption/giftvoucher/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint