Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
GasartApp
Please create a React-JS application for the GasartModule. The application has to offer the following views for the user interface: 1. GasartView 2. GasimportView 3. GasnutzungView 4. GasquelleView 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 GasartView must contain the following fields: - name: Beschreibung type: STRING - name: Fossil type: BOOL - name: Hergestellt type: BOOL - name: Name type: STRING An existing Gasart entity should be loaded from the relative URL: "/GasartService/gasart/{id}" (HTTP-GET) If a new Gasart entity has been created, the new entity should be posted to the relative URL: "/GasartService/gasart" (HTTP-POST) If an existing Gasart entity has been updated, the modified entity should be sent to the relative URL: "/GasartService/gasart/{id}" (HTTP-PUT) If an existing Gasart entity has to be deleted, the following relative URL should be called: "/GasartService/gasart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Gasnutzung columns: - column: Land - column: Sektor - column: Gasart - column: Jahr - column: VolumenBcm - column: Notizen The table should have the title "Gasnutzungs" und the data must be loaded from the server with the following relative URL: "/GasartService/gasnutzung/gasart/{id}" Add a HTML table to the view with the following Gasquelle columns: - column: Endjahr - column: Gasart - column: Quellentyp - column: Startjahr - column: Name - column: Land - column: Notizen - column: StandortStadt The table should have the title "Gasquelles" und the data must be loaded from the server with the following relative URL: "/GasartService/gasquelle/gasart/{id}" Add a HTML table to the view with the following Gasimport columns: - column: VolumenBcm - column: ExportLand - column: Notizen - column: Gasart - column: Jahr - column: PipelineRoute - column: ImportLand The table should have the title "Gasimports" und the data must be loaded from the server with the following relative URL: "/GasartService/gasimport/gasart/{id}" Add a HTML table to the view with the following Pipeline columns: - column: Endjahr - column: HerkunftsLand - column: ZielLand - column: HauptGasart - column: Name - column: Startjahr - column: LaengeKm - column: Notizen The table should have the title "Pipelines" und the data must be loaded from the server with the following relative URL: "/PipelineService/pipeline/hauptgasart/{id}" 2. The GasimportView must contain the following fields: - name: ExportLand type: Land - name: Gasart type: Gasart - name: ImportLand type: Land - name: Jahr type: LONG - name: Notizen type: STRING - name: PipelineRoute type: Pipeline - name: VolumenBcm type: STRING The data source for the [PipelineRoute] select control should be loaded from the relative URL: "/PipelineService/pipeline" (HTTP-GET) The data source for the [ExportLand] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) The data source for the [ImportLand] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) The data source for the [Gasart] select control should be loaded from the relative URL: "/GasartService/gasart" (HTTP-GET) An existing Gasimport entity should be loaded from the relative URL: "/GasartService/gasimport/{id}" (HTTP-GET) If a new Gasimport entity has been created, the new entity should be posted to the relative URL: "/GasartService/gasimport" (HTTP-POST) If an existing Gasimport entity has been updated, the modified entity should be sent to the relative URL: "/GasartService/gasimport/{id}" (HTTP-PUT) If an existing Gasimport entity has to be deleted, the following relative URL should be called: "/GasartService/gasimport/{id}" (HTTP-DELETE) 3. The GasnutzungView must contain the following fields: - name: Gasart type: Gasart - name: Jahr type: LONG - name: Land type: Land - name: Notizen type: STRING - name: Sektor type: STRING - name: VolumenBcm type: STRING The data source for the [Gasart] select control should be loaded from the relative URL: "/GasartService/gasart" (HTTP-GET) The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Gasnutzung entity should be loaded from the relative URL: "/GasartService/gasnutzung/{id}" (HTTP-GET) If a new Gasnutzung entity has been created, the new entity should be posted to the relative URL: "/GasartService/gasnutzung" (HTTP-POST) If an existing Gasnutzung entity has been updated, the modified entity should be sent to the relative URL: "/GasartService/gasnutzung/{id}" (HTTP-PUT) If an existing Gasnutzung entity has to be deleted, the following relative URL should be called: "/GasartService/gasnutzung/{id}" (HTTP-DELETE) 4. The GasquelleView must contain the following fields: - name: Endjahr type: LONG - name: Gasart type: Gasart - name: Land type: Land - name: Name type: STRING - name: Notizen type: STRING - name: Quellentyp type: STRING - name: StandortStadt type: Stadt - name: Startjahr type: LONG The data source for the [StandortStadt] select control should be loaded from the relative URL: "/LandService/stadt" (HTTP-GET) The data source for the [Gasart] select control should be loaded from the relative URL: "/GasartService/gasart" (HTTP-GET) The data source for the [Land] select control should be loaded from the relative URL: "/LandService/land" (HTTP-GET) An existing Gasquelle entity should be loaded from the relative URL: "/GasartService/gasquelle/{id}" (HTTP-GET) If a new Gasquelle entity has been created, the new entity should be posted to the relative URL: "/GasartService/gasquelle" (HTTP-POST) If an existing Gasquelle entity has been updated, the modified entity should be sent to the relative URL: "/GasartService/gasquelle/{id}" (HTTP-PUT) If an existing Gasquelle entity has to be deleted, the following relative URL should be called: "/GasartService/gasquelle/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum