Overview
Summary
Contact
Donate
Imprint
Prompt for the
VehicleModelView
Please create a React-JS view called "VehicleModelView" for the fields of the VehicleModel entity. The VehicleModelView must contain the following fields: - name: BasePriceUsd type: DOUBLE - name: GenerationName type: STRING - name: InitialRevealDate type: DATE - name: MarketSegment type: STRING - name: ModelName type: STRING - name: Notes type: STRING - name: Product type: Product - name: ProductionEndYear type: INT - name: ProductionStartYear type: INT - name: VehicleCategory type: VehicleCategory The data source for the [Product] select control should be loaded from the relative URL: "/CompanyService/product" (HTTP-GET) The data source for the [VehicleCategory] select control should be loaded from the relative URL: "/VehicleModelService/vehiclecategory" (HTTP-GET) An existing VehicleModel entity should be loaded from the relative URL: "/VehicleModelService/vehiclemodel/{id}" (HTTP-GET) If a new VehicleModel entity has been created, the new entity should be posted to the relative URL: "/VehicleModelService/vehiclemodel" (HTTP-POST) If an existing VehicleModel entity has been updated, the modified entity should be sent to the relative URL: "/VehicleModelService/vehiclemodel/{id}" (HTTP-PUT) If an existing VehicleModel entity has to be deleted, the following relative URL should be called: "/VehicleModelService/vehiclemodel/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Recall columns: - column: AnnouncementDate - column: VehicleModel - column: AffectedUnits - column: RecallCode - column: MarketRegion - column: IssueDescription The table should have the title "Recalls" und the data must be loaded from the server with the following relative URL: "/VehicleModelService/recall/vehiclemodel/{id}" Add a HTML table to the view with the following VehicleSalesStat columns: - column: MarketRegion - column: UnitsSold - column: CalendarYear - column: Note - column: VehicleModel - column: IsGlobal The table should have the title "VehicleSalesStats" und the data must be loaded from the server with the following relative URL: "/VehicleModelService/vehiclesalesstat/vehiclemodel/{id}" 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/vehiclemodel/{id}" Add a HTML table to the view with the following Project columns: - column: ProjectName - column: RelatedVehicleModel - column: PlannedEndYear - column: PlannedStartYear - column: Description - column: AnnouncementDate - column: ProjectType - column: Company - column: Status The table should have the title "Projects" und the data must be loaded from the server with the following relative URL: "/VehicleModelService/project/relatedvehiclemodel/{id}" Add a HTML table to the view with the following VehicleSpecification columns: - column: ZeroToHundredKmhSeconds - column: SpecVersionName - column: StartYear - column: LengthMm - column: RangeKm - column: HeightMm - column: Seats - column: CurbWeightKg - column: MarketRegion - column: TopSpeedKmh - column: WidthMm - column: DriveType - column: BatteryWeightKg - column: VehicleModel - column: EndYear The table should have the title "VehicleSpecifications" und the data must be loaded from the server with the following relative URL: "/CityService/vehiclespecification/vehiclemodel/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint