Overview
Summary
Contact
Donate
Imprint
Prompt for the
CarRentalProductView
Please create a React-JS view called "CarRentalProductView" for the fields of the CarRentalProduct entity. The CarRentalProductView must contain the following fields: - name: AirConditioning type: BOOL - name: CarCategory type: CarCategory - name: CarRentalLocation type: CarRentalLocation - name: Description type: STRING - name: Doors type: INT - name: Name type: STRING - name: Seats type: INT - name: Transmission type: STRING The data source for the [CarRentalLocation] select control should be loaded from the relative URL: "/CarRentalLocationService/carrentallocation" (HTTP-GET) The data source for the [CarCategory] select control should be loaded from the relative URL: "/CarCategoryService/carcategory" (HTTP-GET) An existing CarRentalProduct entity should be loaded from the relative URL: "/CarCategoryService/carrentalproduct/{id}" (HTTP-GET) If a new CarRentalProduct entity has been created, the new entity should be posted to the relative URL: "/CarCategoryService/carrentalproduct" (HTTP-POST) If an existing CarRentalProduct entity has been updated, the modified entity should be sent to the relative URL: "/CarCategoryService/carrentalproduct/{id}" (HTTP-PUT) If an existing CarRentalProduct entity has to be deleted, the following relative URL should be called: "/CarCategoryService/carrentalproduct/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CarRentalBooking columns: - column: TotalAmount - column: CarRentalProduct - column: DropoffLocation - column: DropoffDateTime - column: Booking - column: PickupLocation - column: Currency - column: PickupDateTime The table should have the title "CarRentalBookings" und the data must be loaded from the server with the following relative URL: "/CarRentalLocationService/carrentalbooking/carrentalproduct/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint