Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
BookingView
Please create a React-JS view called "BookingView" for the fields of the Booking entity. The BookingView must contain the following fields: - name: BookingDate type: DATE - name: BookingNumber type: STRING - name: Currency type: STRING - name: Customer type: Customer - name: Status type: STRING - name: TotalAmount type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing Booking entity should be loaded from the relative URL: "/CustomerService/booking/{id}" (HTTP-GET) If a new Booking entity has been created, the new entity should be posted to the relative URL: "/CustomerService/booking" (HTTP-POST) If an existing Booking entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/booking/{id}" (HTTP-PUT) If an existing Booking entity has to be deleted, the following relative URL should be called: "/CustomerService/booking/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BookingItem columns: - column: Quantity - column: Event - column: Seat - column: UnitPrice - column: EventTicketType - column: Booking - column: TotalPrice The table should have the title "BookingItems" und the data must be loaded from the server with the following relative URL: "/EventService/bookingitem/booking/{id}" Add a HTML table to the view with the following Payment columns: - column: Currency - column: PaymentStatus - column: TransactionReference - column: PaymentMethod - column: Booking - column: CreatedAt - column: Amount The table should have the title "Payments" und the data must be loaded from the server with the following relative URL: "/CustomerService/payment/booking/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum