Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
EquipmentView
Please create a React-JS view called "EquipmentView" for the fields of the Equipment entity. The EquipmentView must contain the following fields: - name: EquipmentType type: EquipmentType - name: Price type: DOUBLE - name: Room type: Room The data source for the [EquipmentType] select control should be loaded from the relative URL: "/RoomService/equipmenttype" (HTTP-GET) The data source for the [Room] select control should be loaded from the relative URL: "/RoomService/room" (HTTP-GET) An existing Equipment entity should be loaded from the relative URL: "/RoomService/equipment/{id}" (HTTP-GET) If a new Equipment entity has been created, the new entity should be posted to the relative URL: "/RoomService/equipment" (HTTP-POST) If an existing Equipment entity has been updated, the modified entity should be sent to the relative URL: "/RoomService/equipment/{id}" (HTTP-PUT) If an existing Equipment entity has to be deleted, the following relative URL should be called: "/RoomService/equipment/{id}" (HTTP-DELETE) Add a HTML table to the view with the following EquipmentRepair columns: - column: Repair - column: RepairResult - column: Price - column: Equipment - column: Comments The table should have the title "EquipmentRepairs" und the data must be loaded from the server with the following relative URL: "/RoomService/equipmentrepair/equipment/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum