Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
LeistungApp
Please create a React-JS application for the LeistungModule. The application has to offer the following views for the user interface: 1. LeistungView 2. VertragsleistungView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The LeistungView must contain the following fields: - name: Beschreibung type: STRING - name: IstGrundleistung type: BOOL - name: IstWahlleistung type: BOOL - name: Kategorie type: STRING - name: Name type: STRING An existing Leistung entity should be loaded from the relative URL: "/LeistungService/leistung/{id}" (HTTP-GET) If a new Leistung entity has been created, the new entity should be posted to the relative URL: "/LeistungService/leistung" (HTTP-POST) If an existing Leistung entity has been updated, the modified entity should be sent to the relative URL: "/LeistungService/leistung/{id}" (HTTP-PUT) If an existing Leistung entity has to be deleted, the following relative URL should be called: "/LeistungService/leistung/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Vertragsleistung columns: - column: Vertrag - column: IstVerpflichtend - column: Leistung The table should have the title "Vertragsleistungs" und the data must be loaded from the server with the following relative URL: "/LeistungService/vertragsleistung/leistung/{id}" 2. The VertragsleistungView must contain the following fields: - name: IstVerpflichtend type: BOOL - name: Leistung type: Leistung - name: Vertrag type: Vertrag The data source for the [Vertrag] select control should be loaded from the relative URL: "/TraegerorganisationService/vertrag" (HTTP-GET) The data source for the [Leistung] select control should be loaded from the relative URL: "/LeistungService/leistung" (HTTP-GET) An existing Vertragsleistung entity should be loaded from the relative URL: "/LeistungService/vertragsleistung/{id}" (HTTP-GET) If a new Vertragsleistung entity has been created, the new entity should be posted to the relative URL: "/LeistungService/vertragsleistung" (HTTP-POST) If an existing Vertragsleistung entity has been updated, the modified entity should be sent to the relative URL: "/LeistungService/vertragsleistung/{id}" (HTTP-PUT) If an existing Vertragsleistung entity has to be deleted, the following relative URL should be called: "/LeistungService/vertragsleistung/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum