Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
KundenSegmentApp
Please create a React-JS application for the KundenSegmentModule. The application has to offer the following views for the user interface: 1. KundenSegmentView 2. OeffnungsZeitView 3. TankstelleKundenSegmentView 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 KundenSegmentView must contain the following fields: - name: Beschreibung type: STRING - name: Code type: STRING - name: Name type: STRING An existing KundenSegment entity should be loaded from the relative URL: "/KundenSegmentService/kundensegment/{id}" (HTTP-GET) If a new KundenSegment entity has been created, the new entity should be posted to the relative URL: "/KundenSegmentService/kundensegment" (HTTP-POST) If an existing KundenSegment entity has been updated, the modified entity should be sent to the relative URL: "/KundenSegmentService/kundensegment/{id}" (HTTP-PUT) If an existing KundenSegment entity has to be deleted, the following relative URL should be called: "/KundenSegmentService/kundensegment/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TankstelleKundenSegment columns: - column: KundenSegment - column: Wichtigkeit - column: Tankstelle The table should have the title "TankstelleKundenSegments" und the data must be loaded from the server with the following relative URL: "/KundenSegmentService/tankstellekundensegment/kundensegment/{id}" 2. The OeffnungsZeitView must contain the following fields: - name: BisZeit type: STRING - name: Ist24h type: BOOL - name: IstGeschlossen type: BOOL - name: Notizen type: STRING - name: Tankstelle type: Tankstelle - name: VonZeit type: STRING - name: WochenTag type: INT The data source for the [Tankstelle] select control should be loaded from the relative URL: "/TankstelleService/tankstelle" (HTTP-GET) An existing OeffnungsZeit entity should be loaded from the relative URL: "/KundenSegmentService/oeffnungszeit/{id}" (HTTP-GET) If a new OeffnungsZeit entity has been created, the new entity should be posted to the relative URL: "/KundenSegmentService/oeffnungszeit" (HTTP-POST) If an existing OeffnungsZeit entity has been updated, the modified entity should be sent to the relative URL: "/KundenSegmentService/oeffnungszeit/{id}" (HTTP-PUT) If an existing OeffnungsZeit entity has to be deleted, the following relative URL should be called: "/KundenSegmentService/oeffnungszeit/{id}" (HTTP-DELETE) 3. The TankstelleKundenSegmentView must contain the following fields: - name: KundenSegment type: KundenSegment - name: Tankstelle type: Tankstelle - name: Wichtigkeit type: INT The data source for the [Tankstelle] select control should be loaded from the relative URL: "/TankstelleService/tankstelle" (HTTP-GET) The data source for the [KundenSegment] select control should be loaded from the relative URL: "/KundenSegmentService/kundensegment" (HTTP-GET) An existing TankstelleKundenSegment entity should be loaded from the relative URL: "/KundenSegmentService/tankstellekundensegment/{id}" (HTTP-GET) If a new TankstelleKundenSegment entity has been created, the new entity should be posted to the relative URL: "/KundenSegmentService/tankstellekundensegment" (HTTP-POST) If an existing TankstelleKundenSegment entity has been updated, the modified entity should be sent to the relative URL: "/KundenSegmentService/tankstellekundensegment/{id}" (HTTP-PUT) If an existing TankstelleKundenSegment entity has to be deleted, the following relative URL should be called: "/KundenSegmentService/tankstellekundensegment/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum