Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
DienstApp
Please create a React-JS application for the DienstModule. The application has to offer the following views for the user interface: 1. DienstView 2. EinsatzEinsatzmittelView 3. EinsatzmittelView 4. OrganisationView 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 DienstView must contain the following fields: - name: Beschreibung type: STRING - name: Name type: STRING An existing Dienst entity should be loaded from the relative URL: "/DienstService/dienst/{id}" (HTTP-GET) If a new Dienst entity has been created, the new entity should be posted to the relative URL: "/DienstService/dienst" (HTTP-POST) If an existing Dienst entity has been updated, the modified entity should be sent to the relative URL: "/DienstService/dienst/{id}" (HTTP-PUT) If an existing Dienst entity has to be deleted, the following relative URL should be called: "/DienstService/dienst/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LeitstelleDienst columns: - column: Dienst - column: BesondereAufgaben - column: Leitstelle The table should have the title "LeitstelleDiensts" und the data must be loaded from the server with the following relative URL: "/LeitstelleService/leitstelledienst/dienst/{id}" Add a HTML table to the view with the following Einsatzmittel columns: - column: Kennung - column: Organisation - column: StandortGebiet - column: Aktiv - column: Dienst The table should have the title "Einsatzmittels" und the data must be loaded from the server with the following relative URL: "/DienstService/einsatzmittel/dienst/{id}" 2. The EinsatzEinsatzmittelView must contain the following fields: - name: Einsatz type: Einsatz - name: Einsatzmittel type: Einsatzmittel - name: RolleImEinsatz type: STRING The data source for the [Einsatz] select control should be loaded from the relative URL: "/LeitstelleService/einsatz" (HTTP-GET) The data source for the [Einsatzmittel] select control should be loaded from the relative URL: "/DienstService/einsatzmittel" (HTTP-GET) An existing EinsatzEinsatzmittel entity should be loaded from the relative URL: "/DienstService/einsatzeinsatzmittel/{id}" (HTTP-GET) If a new EinsatzEinsatzmittel entity has been created, the new entity should be posted to the relative URL: "/DienstService/einsatzeinsatzmittel" (HTTP-POST) If an existing EinsatzEinsatzmittel entity has been updated, the modified entity should be sent to the relative URL: "/DienstService/einsatzeinsatzmittel/{id}" (HTTP-PUT) If an existing EinsatzEinsatzmittel entity has to be deleted, the following relative URL should be called: "/DienstService/einsatzeinsatzmittel/{id}" (HTTP-DELETE) 3. The EinsatzmittelView must contain the following fields: - name: Aktiv type: BOOL - name: Dienst type: Dienst - name: Kennung type: STRING - name: Organisation type: Organisation - name: StandortGebiet type: Gebiet The data source for the [Organisation] select control should be loaded from the relative URL: "/DienstService/organisation" (HTTP-GET) The data source for the [StandortGebiet] select control should be loaded from the relative URL: "/LandService/gebiet" (HTTP-GET) The data source for the [Dienst] select control should be loaded from the relative URL: "/DienstService/dienst" (HTTP-GET) An existing Einsatzmittel entity should be loaded from the relative URL: "/DienstService/einsatzmittel/{id}" (HTTP-GET) If a new Einsatzmittel entity has been created, the new entity should be posted to the relative URL: "/DienstService/einsatzmittel" (HTTP-POST) If an existing Einsatzmittel entity has been updated, the modified entity should be sent to the relative URL: "/DienstService/einsatzmittel/{id}" (HTTP-PUT) If an existing Einsatzmittel entity has to be deleted, the following relative URL should be called: "/DienstService/einsatzmittel/{id}" (HTTP-DELETE) Add a HTML table to the view with the following EinsatzEinsatzmittel columns: - column: Einsatzmittel - column: Einsatz - column: RolleImEinsatz The table should have the title "EinsatzEinsatzmittels" und the data must be loaded from the server with the following relative URL: "/DienstService/einsatzeinsatzmittel/einsatzmittel/{id}" 4. The OrganisationView must contain the following fields: - name: Land type: Land - name: Name type: STRING - name: Organisationstyp type: STRING The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Organisation entity should be loaded from the relative URL: "/DienstService/organisation/{id}" (HTTP-GET) If a new Organisation entity has been created, the new entity should be posted to the relative URL: "/DienstService/organisation" (HTTP-POST) If an existing Organisation entity has been updated, the modified entity should be sent to the relative URL: "/DienstService/organisation/{id}" (HTTP-PUT) If an existing Organisation entity has to be deleted, the following relative URL should be called: "/DienstService/organisation/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Einsatzmittel columns: - column: Kennung - column: Organisation - column: StandortGebiet - column: Aktiv - column: Dienst The table should have the title "Einsatzmittels" und the data must be loaded from the server with the following relative URL: "/DienstService/einsatzmittel/organisation/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum