Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
FahrzeugApp
Please create a React-JS application for the FahrzeugModule. The application has to offer the following views for the user interface: 1. AusruestungView 2. FahrzeugView 3. FahrzeugAusruestungView 4. FeuerwehrStatistikView 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 AusruestungView must contain the following fields: - name: Anschaffung type: DATE - name: AusserDienst type: DATE - name: Beschreibung type: STRING - name: Feuerwehr type: Feuerwehr - name: Kategorie type: STRING - name: Name type: STRING - name: Seriennummer type: STRING The data source for the [Feuerwehr] select control should be loaded from the relative URL: "/FeuerwehrService/feuerwehr" (HTTP-GET) An existing Ausruestung entity should be loaded from the relative URL: "/FahrzeugService/ausruestung/{id}" (HTTP-GET) If a new Ausruestung entity has been created, the new entity should be posted to the relative URL: "/FahrzeugService/ausruestung" (HTTP-POST) If an existing Ausruestung entity has been updated, the modified entity should be sent to the relative URL: "/FahrzeugService/ausruestung/{id}" (HTTP-PUT) If an existing Ausruestung entity has to be deleted, the following relative URL should be called: "/FahrzeugService/ausruestung/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FahrzeugAusruestung columns: - column: Fahrzeug - column: Ausruestung The table should have the title "FahrzeugAusruestungs" und the data must be loaded from the server with the following relative URL: "/FahrzeugService/fahrzeugausruestung/ausruestung/{id}" 2. The FahrzeugView must contain the following fields: - name: Allrad type: BOOL - name: Baujahr type: INT - name: FahrzeugTyp type: STRING - name: Feuerwehr type: Feuerwehr - name: Funkrufname type: STRING - name: Hersteller type: STRING - name: IstBoot type: BOOL - name: IstRettungswagen type: BOOL - name: Kennzeichen type: STRING - name: Modell type: STRING The data source for the [Feuerwehr] select control should be loaded from the relative URL: "/FeuerwehrService/feuerwehr" (HTTP-GET) An existing Fahrzeug entity should be loaded from the relative URL: "/FahrzeugService/fahrzeug/{id}" (HTTP-GET) If a new Fahrzeug entity has been created, the new entity should be posted to the relative URL: "/FahrzeugService/fahrzeug" (HTTP-POST) If an existing Fahrzeug entity has been updated, the modified entity should be sent to the relative URL: "/FahrzeugService/fahrzeug/{id}" (HTTP-PUT) If an existing Fahrzeug entity has to be deleted, the following relative URL should be called: "/FahrzeugService/fahrzeug/{id}" (HTTP-DELETE) Add a HTML table to the view with the following FahrzeugAusruestung columns: - column: Fahrzeug - column: Ausruestung The table should have the title "FahrzeugAusruestungs" und the data must be loaded from the server with the following relative URL: "/FahrzeugService/fahrzeugausruestung/fahrzeug/{id}" 3. The FahrzeugAusruestungView must contain the following fields: - name: Ausruestung type: Ausruestung - name: Fahrzeug type: Fahrzeug The data source for the [Fahrzeug] select control should be loaded from the relative URL: "/FahrzeugService/fahrzeug" (HTTP-GET) The data source for the [Ausruestung] select control should be loaded from the relative URL: "/FahrzeugService/ausruestung" (HTTP-GET) An existing FahrzeugAusruestung entity should be loaded from the relative URL: "/FahrzeugService/fahrzeugausruestung/{id}" (HTTP-GET) If a new FahrzeugAusruestung entity has been created, the new entity should be posted to the relative URL: "/FahrzeugService/fahrzeugausruestung" (HTTP-POST) If an existing FahrzeugAusruestung entity has been updated, the modified entity should be sent to the relative URL: "/FahrzeugService/fahrzeugausruestung/{id}" (HTTP-PUT) If an existing FahrzeugAusruestung entity has to be deleted, the following relative URL should be called: "/FahrzeugService/fahrzeugausruestung/{id}" (HTTP-DELETE) 4. The FeuerwehrStatistikView must contain the following fields: - name: AktiveMitglieder type: INT - name: Berufliche type: INT - name: BrandEinsaetze type: INT - name: EinsaetzeGesamt type: INT - name: Feuerwehr type: Feuerwehr - name: Frauenanteil type: STRING - name: Freiwillige type: INT - name: Jahr type: INT - name: JugendMitglieder type: INT - name: SonstigeEinsaetze type: INT - name: TechnischeEinsaetze type: INT - name: Teilzeitkraefte type: INT - name: WachenAnzahl type: INT The data source for the [Feuerwehr] select control should be loaded from the relative URL: "/FeuerwehrService/feuerwehr" (HTTP-GET) An existing FeuerwehrStatistik entity should be loaded from the relative URL: "/FahrzeugService/feuerwehrstatistik/{id}" (HTTP-GET) If a new FeuerwehrStatistik entity has been created, the new entity should be posted to the relative URL: "/FahrzeugService/feuerwehrstatistik" (HTTP-POST) If an existing FeuerwehrStatistik entity has been updated, the modified entity should be sent to the relative URL: "/FahrzeugService/feuerwehrstatistik/{id}" (HTTP-PUT) If an existing FeuerwehrStatistik entity has to be deleted, the following relative URL should be called: "/FahrzeugService/feuerwehrstatistik/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum