Overview
Summary
Contact
Donate
Imprint
Prompt for the
CarCategoryApp
Please create a React-JS application for the CarCategoryModule. The application has to offer the following views for the user interface: 1. CarCategoryView 2. CarRentalProductView 3. RoomAvailabilityView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The CarCategoryView must contain the following fields: - name: Code type: STRING - name: Description type: STRING - name: Name type: STRING An existing CarCategory entity should be loaded from the relative URL: "/CarCategoryService/carcategory/{id}" (HTTP-GET) If a new CarCategory entity has been created, the new entity should be posted to the relative URL: "/CarCategoryService/carcategory" (HTTP-POST) If an existing CarCategory entity has been updated, the modified entity should be sent to the relative URL: "/CarCategoryService/carcategory/{id}" (HTTP-PUT) If an existing CarCategory entity has to be deleted, the following relative URL should be called: "/CarCategoryService/carcategory/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CarRentalProduct columns: - column: CarRentalLocation - column: AirConditioning - column: Description - column: Transmission - column: Doors - column: Seats - column: Name - column: CarCategory The table should have the title "CarRentalProducts" und the data must be loaded from the server with the following relative URL: "/CarCategoryService/carrentalproduct/carcategory/{id}" 2. 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}" 3. The RoomAvailabilityView must contain the following fields: - name: ClosedForArrival type: BOOL - name: ClosedForDeparture type: BOOL - name: Date type: DATE - name: RoomType type: RoomType - name: SoldInventory type: INT - name: TotalInventory type: INT The data source for the [RoomType] select control should be loaded from the relative URL: "/RoomTypeService/roomtype" (HTTP-GET) An existing RoomAvailability entity should be loaded from the relative URL: "/CarCategoryService/roomavailability/{id}" (HTTP-GET) If a new RoomAvailability entity has been created, the new entity should be posted to the relative URL: "/CarCategoryService/roomavailability" (HTTP-POST) If an existing RoomAvailability entity has been updated, the modified entity should be sent to the relative URL: "/CarCategoryService/roomavailability/{id}" (HTTP-PUT) If an existing RoomAvailability entity has to be deleted, the following relative URL should be called: "/CarCategoryService/roomavailability/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint