Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
CabinClassApp
Please create a React-JS application for the CabinClassModule. The application has to offer the following views for the user interface: 1. CabinClassView 2. SeatConfigurationView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The CabinClassView must contain the following fields: - name: Code type: STRING - name: Description type: STRING - name: Name type: STRING An existing CabinClass entity should be loaded from the relative URL: "/CabinClassService/cabinclass/{id}" (HTTP-GET) If a new CabinClass entity has been created, the new entity should be posted to the relative URL: "/CabinClassService/cabinclass" (HTTP-POST) If an existing CabinClass entity has been updated, the modified entity should be sent to the relative URL: "/CabinClassService/cabinclass/{id}" (HTTP-PUT) If an existing CabinClass entity has to be deleted, the following relative URL should be called: "/CabinClassService/cabinclass/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SeatConfiguration columns: - column: SeatWidthInch - column: CabinClass - column: SeatPitchInch - column: SeatCount - column: AircraftModel The table should have the title "SeatConfigurations" und the data must be loaded from the server with the following relative URL: "/CabinClassService/seatconfiguration/cabinclass/{id}" Add a HTML table to the view with the following FareClass columns: - column: Code - column: BaggageAllowanceKg - column: CabinClass - column: Refundable - column: Changeable The table should have the title "FareClasss" und the data must be loaded from the server with the following relative URL: "/BookingService/fareclass/cabinclass/{id}" 2. The SeatConfigurationView must contain the following fields: - name: AircraftModel type: AircraftModel - name: CabinClass type: CabinClass - name: SeatCount type: LONG - name: SeatPitchInch type: LONG - name: SeatWidthInch type: LONG The data source for the [CabinClass] select control should be loaded from the relative URL: "/CabinClassService/cabinclass" (HTTP-GET) The data source for the [AircraftModel] select control should be loaded from the relative URL: "/AircraftModelService/aircraftmodel" (HTTP-GET) An existing SeatConfiguration entity should be loaded from the relative URL: "/CabinClassService/seatconfiguration/{id}" (HTTP-GET) If a new SeatConfiguration entity has been created, the new entity should be posted to the relative URL: "/CabinClassService/seatconfiguration" (HTTP-POST) If an existing SeatConfiguration entity has been updated, the modified entity should be sent to the relative URL: "/CabinClassService/seatconfiguration/{id}" (HTTP-PUT) If an existing SeatConfiguration entity has to be deleted, the following relative URL should be called: "/CabinClassService/seatconfiguration/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint