Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
KureinrichtungApp
Please create a React-JS application for the KureinrichtungModule. The application has to offer the following views for the user interface: 1. KureinrichtungView 2. KurortView 3. LandView 4. RegionView 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 KureinrichtungView must contain the following fields: - name: Adresszeile type: STRING - name: Bettenkapazitaet type: INT - name: KureinrichtungTyp type: KureinrichtungTyp - name: Kurort type: Kurort - name: Name type: STRING - name: Postleitzahl type: STRING - name: Stadt type: STRING - name: Zertifiziert type: BOOL The data source for the [KureinrichtungTyp] select control should be loaded from the relative URL: "/HistorischerAspektService/kureinrichtungtyp" (HTTP-GET) The data source for the [Kurort] select control should be loaded from the relative URL: "/KureinrichtungService/kurort" (HTTP-GET) An existing Kureinrichtung entity should be loaded from the relative URL: "/KureinrichtungService/kureinrichtung/{id}" (HTTP-GET) If a new Kureinrichtung entity has been created, the new entity should be posted to the relative URL: "/KureinrichtungService/kureinrichtung" (HTTP-POST) If an existing Kureinrichtung entity has been updated, the modified entity should be sent to the relative URL: "/KureinrichtungService/kureinrichtung/{id}" (HTTP-PUT) If an existing Kureinrichtung entity has to be deleted, the following relative URL should be called: "/KureinrichtungService/kureinrichtung/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Kur columns: - column: Startdatum - column: DauerTage - column: Genehmigt - column: Arzt - column: Rechtsgrundlage - column: Name - column: RehaMassnahme - column: Ziel - column: Krankenkasse - column: KostentraegerTyp - column: Kurtyp - column: Patient - column: Anwendungsart - column: Kureinrichtung - column: Beschreibung - column: Enddatum The table should have the title "Kurs" und the data must be loaded from the server with the following relative URL: "/KurService/kur/kureinrichtung/{id}" Add a HTML table to the view with the following KureinrichtungHeilmittel columns: - column: Kureinrichtung - column: Heilmittel - column: Hauptnutzung The table should have the title "KureinrichtungHeilmittels" und the data must be loaded from the server with the following relative URL: "/HeilmittelService/kureinrichtungheilmittel/kureinrichtung/{id}" 2. The KurortView must contain the following fields: - name: Anerkannt type: BOOL - name: Bevoelkerung type: INT - name: Hoehenmeter type: INT - name: KurortKategorie type: KurortKategorie - name: Name type: STRING - name: Region type: Region The data source for the [KurortKategorie] select control should be loaded from the relative URL: "/KontraindikationService/kurortkategorie" (HTTP-GET) The data source for the [Region] select control should be loaded from the relative URL: "/KureinrichtungService/region" (HTTP-GET) An existing Kurort entity should be loaded from the relative URL: "/KureinrichtungService/kurort/{id}" (HTTP-GET) If a new Kurort entity has been created, the new entity should be posted to the relative URL: "/KureinrichtungService/kurort" (HTTP-POST) If an existing Kurort entity has been updated, the modified entity should be sent to the relative URL: "/KureinrichtungService/kurort/{id}" (HTTP-PUT) If an existing Kurort entity has to be deleted, the following relative URL should be called: "/KureinrichtungService/kurort/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Kureinrichtung columns: - column: Postleitzahl - column: Bettenkapazitaet - column: Zertifiziert - column: Stadt - column: Name - column: Kurort - column: Adresszeile - column: KureinrichtungTyp The table should have the title "Kureinrichtungs" und the data must be loaded from the server with the following relative URL: "/KureinrichtungService/kureinrichtung/kurort/{id}" Add a HTML table to the view with the following KurortHistorischerAspekt columns: - column: HistorischerAspekt - column: Notizen - column: Kurort The table should have the title "KurortHistorischerAspekts" und the data must be loaded from the server with the following relative URL: "/HistorischerAspektService/kurorthistorischeraspekt/kurort/{id}" 3. The LandView must contain the following fields: - name: Code type: STRING - name: Name type: STRING An existing Land entity should be loaded from the relative URL: "/KureinrichtungService/land/{id}" (HTTP-GET) If a new Land entity has been created, the new entity should be posted to the relative URL: "/KureinrichtungService/land" (HTTP-POST) If an existing Land entity has been updated, the modified entity should be sent to the relative URL: "/KureinrichtungService/land/{id}" (HTTP-PUT) If an existing Land entity has to be deleted, the following relative URL should be called: "/KureinrichtungService/land/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Region columns: - column: Name - column: Land The table should have the title "Regions" und the data must be loaded from the server with the following relative URL: "/KureinrichtungService/region/land/{id}" 4. The RegionView must contain the following fields: - name: Land type: Land - name: Name type: STRING The data source for the [Land] select control should be loaded from the relative URL: "/KureinrichtungService/land" (HTTP-GET) An existing Region entity should be loaded from the relative URL: "/KureinrichtungService/region/{id}" (HTTP-GET) If a new Region entity has been created, the new entity should be posted to the relative URL: "/KureinrichtungService/region" (HTTP-POST) If an existing Region entity has been updated, the modified entity should be sent to the relative URL: "/KureinrichtungService/region/{id}" (HTTP-PUT) If an existing Region entity has to be deleted, the following relative URL should be called: "/KureinrichtungService/region/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Kurort columns: - column: Hoehenmeter - column: Anerkannt - column: Region - column: Name - column: KurortKategorie - column: Bevoelkerung The table should have the title "Kurorts" und the data must be loaded from the server with the following relative URL: "/KureinrichtungService/kurort/region/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum