Overview
Summary
Contact
Donate
Imprint
Prompt for the
FlightCarrierView
Please create a React-JS view called "FlightCarrierView" for the fields of the FlightCarrier entity. The FlightCarrierView must contain the following fields: - name: Code type: STRING - name: Name type: STRING An existing FlightCarrier entity should be loaded from the relative URL: "/AirportService/flightcarrier/{id}" (HTTP-GET) If a new FlightCarrier entity has been created, the new entity should be posted to the relative URL: "/AirportService/flightcarrier" (HTTP-POST) If an existing FlightCarrier entity has been updated, the modified entity should be sent to the relative URL: "/AirportService/flightcarrier/{id}" (HTTP-PUT) If an existing FlightCarrier entity has to be deleted, the following relative URL should be called: "/AirportService/flightcarrier/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Flight columns: - column: DurationMinutes - column: OriginAirport - column: FlightCarrier - column: DepartureTime - column: FlightNumber - column: ArrivalTime - column: DestinationAirport The table should have the title "Flights" und the data must be loaded from the server with the following relative URL: "/AirportService/flight/flightcarrier/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint