Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
CustomerApp
Please create a React-JS application for the CustomerModule. The application has to offer the following views for the user interface: 1. ConferenceBookingView 2. CustomerView 3. CustomerAddressView 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 ConferenceBookingView must contain the following fields: - name: AttendeeCount type: LONG - name: ConferenceRoom type: ConferenceRoom - name: CreatedAt type: DATE - name: Customer type: Customer - name: Description type: STRING - name: EndDateTime type: DATE - name: StartDateTime type: DATE - name: Status type: STRING - name: Title type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [ConferenceRoom] select control should be loaded from the relative URL: "/VenueAreaService/conferenceroom" (HTTP-GET) An existing ConferenceBooking entity should be loaded from the relative URL: "/CustomerService/conferencebooking/{id}" (HTTP-GET) If a new ConferenceBooking entity has been created, the new entity should be posted to the relative URL: "/CustomerService/conferencebooking" (HTTP-POST) If an existing ConferenceBooking entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/conferencebooking/{id}" (HTTP-PUT) If an existing ConferenceBooking entity has to be deleted, the following relative URL should be called: "/CustomerService/conferencebooking/{id}" (HTTP-DELETE) 2. The CustomerView must contain the following fields: - name: CreatedAt type: DATE - name: Email type: STRING - name: FirstName type: STRING - name: LastName type: STRING - name: PhoneNumber type: STRING 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: Customer - column: BookingDate - column: TotalAmount - column: Status - column: Currency - column: BookingNumber The table should have the title "Bookings" und the data must be loaded from the server with the following relative URL: "/BookingService/booking/customer/{id}" Add a HTML table to the view with the following ConferenceBooking columns: - column: Status - column: Title - column: StartDateTime - column: ConferenceRoom - column: Description - column: AttendeeCount - column: Customer - column: CreatedAt - column: EndDateTime The table should have the title "ConferenceBookings" und the data must be loaded from the server with the following relative URL: "/CustomerService/conferencebooking/customer/{id}" Add a HTML table to the view with the following CustomerAddress columns: - column: City - column: Street - column: Customer - column: IsPrimary - column: Country - column: PostalCode - column: Label The table should have the title "CustomerAddresss" und the data must be loaded from the server with the following relative URL: "/CustomerService/customeraddress/customer/{id}" 3. The CustomerAddressView must contain the following fields: - name: City type: STRING - name: Country type: STRING - name: Customer type: Customer - name: IsPrimary type: BOOL - name: Label type: STRING - name: PostalCode type: STRING - name: Street type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing CustomerAddress entity should be loaded from the relative URL: "/CustomerService/customeraddress/{id}" (HTTP-GET) If a new CustomerAddress entity has been created, the new entity should be posted to the relative URL: "/CustomerService/customeraddress" (HTTP-POST) If an existing CustomerAddress entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/customeraddress/{id}" (HTTP-PUT) If an existing CustomerAddress entity has to be deleted, the following relative URL should be called: "/CustomerService/customeraddress/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum