Overview
Summary
Contact
Donate
Imprint
Prompt for the
BatteryPackView
Please create a React-JS view called "BatteryPackView" for the fields of the BatteryPack entity. The BatteryPackView must contain the following fields: - name: BatteryCellFormat type: BatteryCellFormat - name: CapacityKwh type: DOUBLE - name: CellCount type: INT - name: CoolingType type: STRING - name: Description type: STRING - name: NominalVoltageV type: DOUBLE - name: PackName type: STRING The data source for the [BatteryCellFormat] select control should be loaded from the relative URL: "/BatteryPackService/batterycellformat" (HTTP-GET) An existing BatteryPack entity should be loaded from the relative URL: "/BatteryPackService/batterypack/{id}" (HTTP-GET) If a new BatteryPack entity has been created, the new entity should be posted to the relative URL: "/BatteryPackService/batterypack" (HTTP-POST) If an existing BatteryPack entity has been updated, the modified entity should be sent to the relative URL: "/BatteryPackService/batterypack/{id}" (HTTP-PUT) If an existing BatteryPack entity has to be deleted, the following relative URL should be called: "/BatteryPackService/batterypack/{id}" (HTTP-DELETE) Add a HTML table to the view with the following VehicleBatteryOption columns: - column: VehicleModel - column: EndYear - column: StartYear - column: IsPerformanceVariant - column: RangeKm - column: OptionName - column: BatteryPack The table should have the title "VehicleBatteryOptions" und the data must be loaded from the server with the following relative URL: "/VehicleModelService/vehiclebatteryoption/batterypack/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint