Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SensortypApp
Please create a React-JS application for the SensortypModule. The application has to offer the following views for the user interface: 1. BehaelterSensorView 2. SensortypView 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 BehaelterSensorView must contain the following fields: - name: Abfallbehaelter type: Abfallbehaelter - name: Installationsdatum type: DATE - name: IstAktiv type: BOOL - name: MeldetFuellstandOnline type: BOOL - name: Sensortyp type: Sensortyp - name: Verbindungstechnik type: STRING The data source for the [Abfallbehaelter] select control should be loaded from the relative URL: "/AbfallbehaelterService/abfallbehaelter" (HTTP-GET) The data source for the [Sensortyp] select control should be loaded from the relative URL: "/SensortypService/sensortyp" (HTTP-GET) An existing BehaelterSensor entity should be loaded from the relative URL: "/SensortypService/behaeltersensor/{id}" (HTTP-GET) If a new BehaelterSensor entity has been created, the new entity should be posted to the relative URL: "/SensortypService/behaeltersensor" (HTTP-POST) If an existing BehaelterSensor entity has been updated, the modified entity should be sent to the relative URL: "/SensortypService/behaeltersensor/{id}" (HTTP-PUT) If an existing BehaelterSensor entity has to be deleted, the following relative URL should be called: "/SensortypService/behaeltersensor/{id}" (HTTP-DELETE) 2. The SensortypView must contain the following fields: - name: Beschreibung type: STRING - name: Einheit type: STRING - name: Name type: STRING An existing Sensortyp entity should be loaded from the relative URL: "/SensortypService/sensortyp/{id}" (HTTP-GET) If a new Sensortyp entity has been created, the new entity should be posted to the relative URL: "/SensortypService/sensortyp" (HTTP-POST) If an existing Sensortyp entity has been updated, the modified entity should be sent to the relative URL: "/SensortypService/sensortyp/{id}" (HTTP-PUT) If an existing Sensortyp entity has to be deleted, the following relative URL should be called: "/SensortypService/sensortyp/{id}" (HTTP-DELETE) Add a HTML table to the view with the following BehaelterSensor columns: - column: MeldetFuellstandOnline - column: Sensortyp - column: Verbindungstechnik - column: Abfallbehaelter - column: IstAktiv - column: Installationsdatum The table should have the title "BehaelterSensors" und the data must be loaded from the server with the following relative URL: "/SensortypService/behaeltersensor/sensortyp/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum