Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
LeuchteninstallationApp
Please create a React-JS application for the LeuchteninstallationModule. The application has to offer the following views for the user interface: 1. InstallationUmweltwirkungView 2. LeuchteninstallationView 3. MastView 4. TunnelView 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 InstallationUmweltwirkungView must contain the following fields: - name: Hinweise type: STRING - name: Leuchteninstallation type: Leuchteninstallation - name: Schweregrad type: INT - name: UmweltwirkungTyp type: UmweltwirkungTyp The data source for the [UmweltwirkungTyp] select control should be loaded from the relative URL: "/StrasseService/umweltwirkungtyp" (HTTP-GET) The data source for the [Leuchteninstallation] select control should be loaded from the relative URL: "/LeuchteninstallationService/leuchteninstallation" (HTTP-GET) An existing InstallationUmweltwirkung entity should be loaded from the relative URL: "/LeuchteninstallationService/installationumweltwirkung/{id}" (HTTP-GET) If a new InstallationUmweltwirkung entity has been created, the new entity should be posted to the relative URL: "/LeuchteninstallationService/installationumweltwirkung" (HTTP-POST) If an existing InstallationUmweltwirkung entity has been updated, the modified entity should be sent to the relative URL: "/LeuchteninstallationService/installationumweltwirkung/{id}" (HTTP-PUT) If an existing InstallationUmweltwirkung entity has to be deleted, the following relative URL should be called: "/LeuchteninstallationService/installationumweltwirkung/{id}" (HTTP-DELETE) 2. The LeuchteninstallationView must contain the following fields: - name: AbstandMeter type: STRING - name: IstAnBruecke type: BOOL - name: IstAnGebaeude type: BOOL - name: IstAnSeil type: BOOL - name: Leuchte type: Leuchte - name: Mast type: Mast - name: Montagehoehe type: STRING - name: PositionUeberFahrbahn type: STRING - name: Strassenbeleuchtungsanlage type: Strassenbeleuchtungsanlage - name: Stromkreis type: Stromkreis The data source for the [Leuchte] select control should be loaded from the relative URL: "/LichtquellenTypService/leuchte" (HTTP-GET) The data source for the [Mast] select control should be loaded from the relative URL: "/LeuchteninstallationService/mast" (HTTP-GET) The data source for the [Strassenbeleuchtungsanlage] select control should be loaded from the relative URL: "/BeleuchtungsnormService/strassenbeleuchtungsanlage" (HTTP-GET) The data source for the [Stromkreis] select control should be loaded from the relative URL: "/GemeindeService/stromkreis" (HTTP-GET) An existing Leuchteninstallation entity should be loaded from the relative URL: "/LeuchteninstallationService/leuchteninstallation/{id}" (HTTP-GET) If a new Leuchteninstallation entity has been created, the new entity should be posted to the relative URL: "/LeuchteninstallationService/leuchteninstallation" (HTTP-POST) If an existing Leuchteninstallation entity has been updated, the modified entity should be sent to the relative URL: "/LeuchteninstallationService/leuchteninstallation/{id}" (HTTP-PUT) If an existing Leuchteninstallation entity has to be deleted, the following relative URL should be called: "/LeuchteninstallationService/leuchteninstallation/{id}" (HTTP-DELETE) Add a HTML table to the view with the following InstallationUmweltwirkung columns: - column: UmweltwirkungTyp - column: Hinweise - column: Schweregrad - column: Leuchteninstallation The table should have the title "InstallationUmweltwirkungs" und the data must be loaded from the server with the following relative URL: "/LeuchteninstallationService/installationumweltwirkung/leuchteninstallation/{id}" Add a HTML table to the view with the following Lampe columns: - column: LeistungWatt - column: Installationsdatum - column: Leuchteninstallation - column: LichtquellenTyp - column: AusbauDatum - column: IstPrimaer The table should have the title "Lampes" und the data must be loaded from the server with the following relative URL: "/LichtquellenTypService/lampe/leuchteninstallation/{id}" 3. The MastView must contain the following fields: - name: Code type: STRING - name: HatAusleger type: BOOL - name: HoeheMeter type: STRING - name: IstDekorativ type: BOOL - name: Material type: STRING - name: MontageortTyp type: STRING An existing Mast entity should be loaded from the relative URL: "/LeuchteninstallationService/mast/{id}" (HTTP-GET) If a new Mast entity has been created, the new entity should be posted to the relative URL: "/LeuchteninstallationService/mast" (HTTP-POST) If an existing Mast entity has been updated, the modified entity should be sent to the relative URL: "/LeuchteninstallationService/mast/{id}" (HTTP-PUT) If an existing Mast entity has to be deleted, the following relative URL should be called: "/LeuchteninstallationService/mast/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Leuchteninstallation columns: - column: Montagehoehe - column: IstAnGebaeude - column: Leuchte - column: Strassenbeleuchtungsanlage - column: Mast - column: IstAnBruecke - column: PositionUeberFahrbahn - column: AbstandMeter - column: Stromkreis - column: IstAnSeil The table should have the title "Leuchteninstallations" und the data must be loaded from the server with the following relative URL: "/LeuchteninstallationService/leuchteninstallation/mast/{id}" 4. The TunnelView must contain the following fields: - name: HatSpezielleNorm type: BOOL - name: LaengeMeter type: STRING - name: Name type: STRING - name: Norm type: Beleuchtungsnorm - name: Strasse type: Strasse The data source for the [Norm] select control should be loaded from the relative URL: "/BeleuchtungsnormService/beleuchtungsnorm" (HTTP-GET) The data source for the [Strasse] select control should be loaded from the relative URL: "/StrasseService/strasse" (HTTP-GET) An existing Tunnel entity should be loaded from the relative URL: "/LeuchteninstallationService/tunnel/{id}" (HTTP-GET) If a new Tunnel entity has been created, the new entity should be posted to the relative URL: "/LeuchteninstallationService/tunnel" (HTTP-POST) If an existing Tunnel entity has been updated, the modified entity should be sent to the relative URL: "/LeuchteninstallationService/tunnel/{id}" (HTTP-PUT) If an existing Tunnel entity has to be deleted, the following relative URL should be called: "/LeuchteninstallationService/tunnel/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum