Overview
Summary
Contact
Donate
Imprint
Prompt for the
CustomerView
Please create a React-JS view called "CustomerView" for the fields of the Customer entity. The CustomerView must contain the following fields: - name: AddressLine1 type: STRING - name: AddressLine2 type: STRING - name: City type: STRING - name: Country type: Country - name: Email type: STRING - name: FirstName type: STRING - name: LastName type: STRING - name: Phone type: STRING - name: PostalCode type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) An existing Customer entity should be loaded from the relative URL: "/CustomerService/customer/{id}" (HTTP-GET) If a new Customer entity has been created, the new entity should be posted to the relative URL: "/CustomerService/customer" (HTTP-POST) If an existing Customer entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/customer/{id}" (HTTP-PUT) If an existing Customer entity has to be deleted, the following relative URL should be called: "/CustomerService/customer/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Booking columns: - column: Flight - column: BookingCode - column: Status - column: BookingDateTime - column: TotalPrice - column: Currency - column: Customer The table should have the title "Bookings" und the data must be loaded from the server with the following relative URL: "/CustomerService/booking/customer/{id}" Add a HTML table to the view with the following CustomerOrder columns: - column: OrderNumber - column: Customer - column: Status - column: TotalAmount - column: Currency - column: OrderDateTime The table should have the title "CustomerOrders" und the data must be loaded from the server with the following relative URL: "/CustomerService/customerorder/customer/{id}" Add a HTML table to the view with the following GiftVoucher columns: - column: Currency - column: IssueDate - column: ExpiryDate - column: ValueAmount - column: Code - column: PurchaserCustomer - column: IsRedeemed The table should have the title "GiftVouchers" und the data must be loaded from the server with the following relative URL: "/GiftVoucherService/giftvoucher/purchasercustomer/{id}" Add a HTML table to the view with the following Reservation columns: - column: Restaurant - column: Status - column: ReservationDateTime - column: PartySize - column: Customer - column: Notes The table should have the title "Reservations" und the data must be loaded from the server with the following relative URL: "/CustomerService/reservation/customer/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint