Overview
Summary
Contact
Donate
Imprint
Prompt for the
VehicleModelApp
Please create a React-JS application for the VehicleModelModule. The application has to offer the following views for the user interface: 1. FleetVehicleTypeView 2. LegalCaseView 3. TruckingOperationView 4. VehicleModelView 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 FleetVehicleTypeView must contain the following fields: - name: EndUseDate type: DATE - name: Generation type: STRING - name: Notes type: STRING - name: StartUseDate type: DATE - name: UseCase type: STRING - name: VehicleModel type: VehicleModel The data source for the [VehicleModel] select control should be loaded from the relative URL: "/VehicleModelService/vehiclemodel" (HTTP-GET) An existing FleetVehicleType entity should be loaded from the relative URL: "/VehicleModelService/fleetvehicletype/{id}" (HTTP-GET) If a new FleetVehicleType entity has been created, the new entity should be posted to the relative URL: "/VehicleModelService/fleetvehicletype" (HTTP-POST) If an existing FleetVehicleType entity has been updated, the modified entity should be sent to the relative URL: "/VehicleModelService/fleetvehicletype/{id}" (HTTP-PUT) If an existing FleetVehicleType entity has to be deleted, the following relative URL should be called: "/VehicleModelService/fleetvehicletype/{id}" (HTTP-DELETE) 2. The LegalCaseView must contain the following fields: - name: CaseType type: STRING - name: Company type: Company - name: Counterparty type: STRING - name: Description type: STRING - name: FilingDate type: DATE - name: Outcome type: STRING - name: ResolutionDate type: DATE - name: SettlementAmountUsd type: DOUBLE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing LegalCase entity should be loaded from the relative URL: "/VehicleModelService/legalcase/{id}" (HTTP-GET) If a new LegalCase entity has been created, the new entity should be posted to the relative URL: "/VehicleModelService/legalcase" (HTTP-POST) If an existing LegalCase entity has been updated, the modified entity should be sent to the relative URL: "/VehicleModelService/legalcase/{id}" (HTTP-PUT) If an existing LegalCase entity has to be deleted, the following relative URL should be called: "/VehicleModelService/legalcase/{id}" (HTTP-DELETE) 3. The TruckingOperationView must contain the following fields: - name: EndDate type: DATE - name: HubCity type: STRING - name: HubState type: STRING - name: Notes type: STRING - name: PartnerCompany type: Company - name: Program type: Program - name: StartDate type: DATE - name: VehicleModel type: VehicleModel The data source for the [PartnerCompany] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [VehicleModel] select control should be loaded from the relative URL: "/VehicleModelService/vehiclemodel" (HTTP-GET) The data source for the [Program] select control should be loaded from the relative URL: "/ProgramService/program" (HTTP-GET) An existing TruckingOperation entity should be loaded from the relative URL: "/VehicleModelService/truckingoperation/{id}" (HTTP-GET) If a new TruckingOperation entity has been created, the new entity should be posted to the relative URL: "/VehicleModelService/truckingoperation" (HTTP-POST) If an existing TruckingOperation entity has been updated, the modified entity should be sent to the relative URL: "/VehicleModelService/truckingoperation/{id}" (HTTP-PUT) If an existing TruckingOperation entity has to be deleted, the following relative URL should be called: "/VehicleModelService/truckingoperation/{id}" (HTTP-DELETE) 4. The VehicleModelView must contain the following fields: - name: Manufacturer type: STRING - name: ModelName type: STRING - name: Notes type: STRING - name: PowertrainType type: STRING - name: VehicleClass type: STRING 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 TruckingOperation columns: - column: HubCity - column: Notes - column: EndDate - column: PartnerCompany - column: VehicleModel - column: StartDate - column: Program - column: HubState The table should have the title "TruckingOperations" und the data must be loaded from the server with the following relative URL: "/VehicleModelService/truckingoperation/vehiclemodel/{id}" Add a HTML table to the view with the following FleetVehicleType columns: - column: VehicleModel - column: UseCase - column: Notes - column: Generation - column: EndUseDate - column: StartUseDate The table should have the title "FleetVehicleTypes" und the data must be loaded from the server with the following relative URL: "/VehicleModelService/fleetvehicletype/vehiclemodel/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint