Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SchichtApp
Please create a React-JS application for the SchichtModule. The application has to offer the following views for the user interface: 1. NotrufView 2. SchichtView 3. SchichtMitarbeiterView 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 NotrufView must contain the following fields: - name: AnruferName type: STRING - name: AnruferTelefon type: STRING - name: Beschreibung type: STRING - name: Eingangszeit type: DATE - name: Leitstelle type: Leitstelle - name: OrtBeschreibung type: STRING - name: Prioritaet type: STRING - name: Rufnummer type: STRING The data source for the [Leitstelle] select control should be loaded from the relative URL: "/LeitstelleService/leitstelle" (HTTP-GET) An existing Notruf entity should be loaded from the relative URL: "/SchichtService/notruf/{id}" (HTTP-GET) If a new Notruf entity has been created, the new entity should be posted to the relative URL: "/SchichtService/notruf" (HTTP-POST) If an existing Notruf entity has been updated, the modified entity should be sent to the relative URL: "/SchichtService/notruf/{id}" (HTTP-PUT) If an existing Notruf entity has to be deleted, the following relative URL should be called: "/SchichtService/notruf/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Einsatz columns: - column: Einsatzende - column: Leitstelle - column: Einsatzbeginn - column: Einsatzart - column: Bemerkung - column: AusnahmezustandAusgerufen - column: Notruf - column: Einsatzort The table should have the title "Einsatzs" und the data must be loaded from the server with the following relative URL: "/LeitstelleService/einsatz/notruf/{id}" 2. The SchichtView must contain the following fields: - name: Beginn type: DATE - name: Ende type: DATE - name: Leitstelle type: Leitstelle - name: Schichtfuehrer type: Mitarbeiter The data source for the [Schichtfuehrer] select control should be loaded from the relative URL: "/LeitstelleService/mitarbeiter" (HTTP-GET) The data source for the [Leitstelle] select control should be loaded from the relative URL: "/LeitstelleService/leitstelle" (HTTP-GET) An existing Schicht entity should be loaded from the relative URL: "/SchichtService/schicht/{id}" (HTTP-GET) If a new Schicht entity has been created, the new entity should be posted to the relative URL: "/SchichtService/schicht" (HTTP-POST) If an existing Schicht entity has been updated, the modified entity should be sent to the relative URL: "/SchichtService/schicht/{id}" (HTTP-PUT) If an existing Schicht entity has to be deleted, the following relative URL should be called: "/SchichtService/schicht/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SchichtMitarbeiter columns: - column: Schicht - column: Mitarbeiter - column: FunktionInSchicht The table should have the title "SchichtMitarbeiters" und the data must be loaded from the server with the following relative URL: "/SchichtService/schichtmitarbeiter/schicht/{id}" 3. The SchichtMitarbeiterView must contain the following fields: - name: FunktionInSchicht type: STRING - name: Mitarbeiter type: Mitarbeiter - name: Schicht type: Schicht The data source for the [Schicht] select control should be loaded from the relative URL: "/SchichtService/schicht" (HTTP-GET) The data source for the [Mitarbeiter] select control should be loaded from the relative URL: "/LeitstelleService/mitarbeiter" (HTTP-GET) An existing SchichtMitarbeiter entity should be loaded from the relative URL: "/SchichtService/schichtmitarbeiter/{id}" (HTTP-GET) If a new SchichtMitarbeiter entity has been created, the new entity should be posted to the relative URL: "/SchichtService/schichtmitarbeiter" (HTTP-POST) If an existing SchichtMitarbeiter entity has been updated, the modified entity should be sent to the relative URL: "/SchichtService/schichtmitarbeiter/{id}" (HTTP-PUT) If an existing SchichtMitarbeiter entity has to be deleted, the following relative URL should be called: "/SchichtService/schichtmitarbeiter/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum