Overview
Summary
Contact
Donate
Imprint
Prompt for the
HangarView
Please create a React-JS view called "HangarView" for the fields of the Hangar entity. The HangarView must contain the following fields: - name: BuiltYear type: INT - name: Capacity type: INT - name: HeightMeters type: STRING - name: LengthMeters type: STRING - name: Location type: Location - name: Name type: STRING - name: WidthMeters type: STRING The data source for the [Location] select control should be loaded from the relative URL: "/LocationService/location" (HTTP-GET) An existing Hangar entity should be loaded from the relative URL: "/LocationService/hangar/{id}" (HTTP-GET) If a new Hangar entity has been created, the new entity should be posted to the relative URL: "/LocationService/hangar" (HTTP-POST) If an existing Hangar entity has been updated, the modified entity should be sent to the relative URL: "/LocationService/hangar/{id}" (HTTP-PUT) If an existing Hangar entity has to be deleted, the following relative URL should be called: "/LocationService/hangar/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Restaurant columns: - column: Description - column: RelatedHangar - column: Name - column: Location - column: Website The table should have the title "Restaurants" und the data must be loaded from the server with the following relative URL: "/RestaurantService/restaurant/relatedhangar/{id}" Add a HTML table to the view with the following FlightRoute columns: - column: DurationMinutes - column: Description - column: DepartureLocation - column: Name - column: DefaultHangar - column: ArrivalLocation - column: Region - column: DistanceKm The table should have the title "FlightRoutes" und the data must be loaded from the server with the following relative URL: "/LocationService/flightroute/defaulthangar/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint