Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
AirlineApp
Please create a React-JS application for the AirlineModule. The application has to offer the following views for the user interface: 1. AircraftView 2. AirlineView 3. CrewMemberView 4. PassengerView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The AircraftView must contain the following fields: - name: AircraftModel type: AircraftModel - name: Airline type: Airline - name: DeliveryDate type: DATE - name: Registration type: STRING - name: SerialNumber type: STRING - name: Status type: STRING The data source for the [Airline] select control should be loaded from the relative URL: "/AirlineService/airline" (HTTP-GET) The data source for the [AircraftModel] select control should be loaded from the relative URL: "/AircraftModelService/aircraftmodel" (HTTP-GET) An existing Aircraft entity should be loaded from the relative URL: "/AirlineService/aircraft/{id}" (HTTP-GET) If a new Aircraft entity has been created, the new entity should be posted to the relative URL: "/AirlineService/aircraft" (HTTP-POST) If an existing Aircraft entity has been updated, the modified entity should be sent to the relative URL: "/AirlineService/aircraft/{id}" (HTTP-PUT) If an existing Aircraft entity has to be deleted, the following relative URL should be called: "/AirlineService/aircraft/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FlightInstance columns: - column: ScheduledDepartureUtc - column: ScheduledArrivalUtc - column: Status - column: FlightSchedule - column: ActualDepartureUtc - column: ActualArrivalUtc - column: Aircraft The table should have the title "FlightInstances" und the data must be loaded from the server with the following relative URL: "/FlightInstanceService/flightinstance/aircraft/{id}" 2. The AirlineView must contain the following fields: - name: AirlineType type: STRING - name: Callsign type: STRING - name: Country type: Country - name: FoundedYear type: LONG - name: HeadquartersCity type: STRING - name: IataCode type: STRING - name: IcaoCode type: STRING - name: Name type: STRING - name: OwnershipType type: STRING - name: Status type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) An existing Airline entity should be loaded from the relative URL: "/AirlineService/airline/{id}" (HTTP-GET) If a new Airline entity has been created, the new entity should be posted to the relative URL: "/AirlineService/airline" (HTTP-POST) If an existing Airline entity has been updated, the modified entity should be sent to the relative URL: "/AirlineService/airline/{id}" (HTTP-PUT) If an existing Airline entity has to be deleted, the following relative URL should be called: "/AirlineService/airline/{id}" (HTTP-DELETE) Add a HTML table to the view with the following AirlineHub columns: - column: HubType - column: Airport - column: SinceDate - column: Airline The table should have the title "AirlineHubs" und the data must be loaded from the server with the following relative URL: "/AirportService/airlinehub/airline/{id}" Add a HTML table to the view with the following Ticket columns: - column: IssueDate - column: Currency - column: TotalAmount - column: PointOfSaleCountry - column: TicketNumber - column: Airline The table should have the title "Tickets" und the data must be loaded from the server with the following relative URL: "/BookingService/ticket/airline/{id}" Add a HTML table to the view with the following FlightNumber columns: - column: Description - column: Code - column: Airline The table should have the title "FlightNumbers" und the data must be loaded from the server with the following relative URL: "/FlightNumberService/flightnumber/airline/{id}" Add a HTML table to the view with the following CodeshareAgreement columns: - column: OperatingAirline - column: StartDate - column: Notes - column: FlightNumber - column: MarketingAirline - column: EndDate The table should have the title "CodeshareAgreements" und the data must be loaded from the server with the following relative URL: "/FlightNumberService/codeshareagreement/marketingairline/{id}" Add a HTML table to the view with the following CodeshareAgreement columns: - column: OperatingAirline - column: StartDate - column: Notes - column: FlightNumber - column: MarketingAirline - column: EndDate The table should have the title "CodeshareAgreements" und the data must be loaded from the server with the following relative URL: "/FlightNumberService/codeshareagreement/operatingairline/{id}" Add a HTML table to the view with the following AirlineRegulatoryBody columns: - column: RegulatoryBody - column: Status - column: ExpiryDate - column: CertificateNumber - column: Airline - column: IssueDate The table should have the title "AirlineRegulatoryBodys" und the data must be loaded from the server with the following relative URL: "/CountryService/airlineregulatorybody/airline/{id}" Add a HTML table to the view with the following AirlineAlliance columns: - column: JoinDate - column: Alliance - column: Airline - column: Status The table should have the title "AirlineAlliances" und the data must be loaded from the server with the following relative URL: "/AllianceService/airlinealliance/airline/{id}" Add a HTML table to the view with the following CrewMember columns: - column: LastName - column: EmployeeNumber - column: FirstName - column: HireDate - column: Status - column: Role - column: Airline The table should have the title "CrewMembers" und the data must be loaded from the server with the following relative URL: "/AirlineService/crewmember/airline/{id}" Add a HTML table to the view with the following Aircraft columns: - column: Airline - column: SerialNumber - column: Registration - column: AircraftModel - column: Status - column: DeliveryDate The table should have the title "Aircrafts" und the data must be loaded from the server with the following relative URL: "/AirlineService/aircraft/airline/{id}" Add a HTML table to the view with the following Route columns: - column: DomesticInternational - column: DestinationAirport - column: Airline - column: ActiveFrom - column: OriginAirport - column: ActiveTo - column: DistanceKm The table should have the title "Routes" und the data must be loaded from the server with the following relative URL: "/FlightNumberService/route/airline/{id}" Add a HTML table to the view with the following Passenger columns: - column: NationalityCountry - column: DateOfBirth - column: FrequentFlyerNumber - column: Gender - column: LastName - column: FrequentFlyerAirline - column: FirstName The table should have the title "Passengers" und the data must be loaded from the server with the following relative URL: "/AirlineService/passenger/frequentflyerairline/{id}" Add a HTML table to the view with the following LoyaltyProgram columns: - column: Airline - column: Name - column: Description The table should have the title "LoyaltyPrograms" und the data must be loaded from the server with the following relative URL: "/LoyaltyProgramService/loyaltyprogram/airline/{id}" 3. The CrewMemberView must contain the following fields: - name: Airline type: Airline - name: EmployeeNumber type: STRING - name: FirstName type: STRING - name: HireDate type: DATE - name: LastName type: STRING - name: Role type: STRING - name: Status type: STRING The data source for the [Airline] select control should be loaded from the relative URL: "/AirlineService/airline" (HTTP-GET) An existing CrewMember entity should be loaded from the relative URL: "/AirlineService/crewmember/{id}" (HTTP-GET) If a new CrewMember entity has been created, the new entity should be posted to the relative URL: "/AirlineService/crewmember" (HTTP-POST) If an existing CrewMember entity has been updated, the modified entity should be sent to the relative URL: "/AirlineService/crewmember/{id}" (HTTP-PUT) If an existing CrewMember entity has to be deleted, the following relative URL should be called: "/AirlineService/crewmember/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FlightCrewAssignment columns: - column: CheckOutTime - column: DutyRole - column: FlightInstance - column: CheckInTime - column: CrewMember The table should have the title "FlightCrewAssignments" und the data must be loaded from the server with the following relative URL: "/FlightInstanceService/flightcrewassignment/crewmember/{id}" Add a HTML table to the view with the following CrewQualification columns: - column: CrewMember - column: ValidFrom - column: AircraftModel - column: ValidTo - column: QualificationType The table should have the title "CrewQualifications" und the data must be loaded from the server with the following relative URL: "/AircraftModelService/crewqualification/crewmember/{id}" 4. The PassengerView must contain the following fields: - name: DateOfBirth type: DATE - name: FirstName type: STRING - name: FrequentFlyerAirline type: Airline - name: FrequentFlyerNumber type: STRING - name: Gender type: STRING - name: LastName type: STRING - name: NationalityCountry type: Country The data source for the [NationalityCountry] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [FrequentFlyerAirline] select control should be loaded from the relative URL: "/AirlineService/airline" (HTTP-GET) An existing Passenger entity should be loaded from the relative URL: "/AirlineService/passenger/{id}" (HTTP-GET) If a new Passenger entity has been created, the new entity should be posted to the relative URL: "/AirlineService/passenger" (HTTP-POST) If an existing Passenger entity has been updated, the modified entity should be sent to the relative URL: "/AirlineService/passenger/{id}" (HTTP-PUT) If an existing Passenger entity has to be deleted, the following relative URL should be called: "/AirlineService/passenger/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BookingPassenger columns: - column: Passenger - column: LoyaltyStatus - column: Booking - column: PassengerType The table should have the title "BookingPassengers" und the data must be loaded from the server with the following relative URL: "/AirportService/bookingpassenger/passenger/{id}" Add a HTML table to the view with the following LoyaltyAccount columns: - column: Status - column: Passenger - column: Tier - column: LoyaltyProgram - column: AccountNumber - column: EnrollDate The table should have the title "LoyaltyAccounts" und the data must be loaded from the server with the following relative URL: "/LoyaltyAccountService/loyaltyaccount/passenger/{id}"
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint