Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
StationApp
Please create a React-JS application for the StationModule. The application has to offer the following views for the user interface: 1. FahrtView 2. MitgliedschaftView 3. ParkplatzView 4. ReservierungView 5. StationView 6. StrafeView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 6 views are defined below. 1. The FahrtView must contain the following fields: - name: AbgerechneteKm type: STRING - name: AbgerechneteZeitMin type: LONG - name: Ende type: DATE - name: Reservierung type: Reservierung - name: Start type: DATE - name: StreckeKm type: STRING The data source for the [Reservierung] select control should be loaded from the relative URL: "/StationService/reservierung" (HTTP-GET) An existing Fahrt entity should be loaded from the relative URL: "/StationService/fahrt/{id}" (HTTP-GET) If a new Fahrt entity has been created, the new entity should be posted to the relative URL: "/StationService/fahrt" (HTTP-POST) If an existing Fahrt entity has been updated, the modified entity should be sent to the relative URL: "/StationService/fahrt/{id}" (HTTP-PUT) If an existing Fahrt entity has to be deleted, the following relative URL should be called: "/StationService/fahrt/{id}" (HTTP-DELETE) 2. The MitgliedschaftView must contain the following fields: - name: CarsharingOrganisation type: CarsharingOrganisation - name: Enddatum type: DATE - name: Gastgeber type: BOOL - name: GastgeberAdresse type: STRING - name: Mitgliedsnummer type: STRING - name: Nutzer type: Nutzer - name: Startdatum type: DATE The data source for the [CarsharingOrganisation] select control should be loaded from the relative URL: "/CarsharingOrganisationService/carsharingorganisation" (HTTP-GET) The data source for the [Nutzer] select control should be loaded from the relative URL: "/LandService/nutzer" (HTTP-GET) An existing Mitgliedschaft entity should be loaded from the relative URL: "/StationService/mitgliedschaft/{id}" (HTTP-GET) If a new Mitgliedschaft entity has been created, the new entity should be posted to the relative URL: "/StationService/mitgliedschaft" (HTTP-POST) If an existing Mitgliedschaft entity has been updated, the modified entity should be sent to the relative URL: "/StationService/mitgliedschaft/{id}" (HTTP-PUT) If an existing Mitgliedschaft entity has to be deleted, the following relative URL should be called: "/StationService/mitgliedschaft/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Zugangsmittel columns: - column: EntzogenAm - column: Kennung - column: Mitgliedschaft - column: Typ - column: AusgestelltAm The table should have the title "Zugangsmittels" und the data must be loaded from the server with the following relative URL: "/TarifService/zugangsmittel/mitgliedschaft/{id}" Add a HTML table to the view with the following Reservierung columns: - column: StartGeplant - column: StationRueckgabe - column: StationAbholung - column: StorniertAm - column: Status - column: Mitgliedschaft - column: Tarif - column: EndeGeplant - column: Fahrzeug - column: ErstelltAm The table should have the title "Reservierungs" und the data must be loaded from the server with the following relative URL: "/StationService/reservierung/mitgliedschaft/{id}" 3. The ParkplatzView must contain the following fields: - name: Code type: STRING - name: Ladefaehig type: BOOL - name: Reserviert type: BOOL - name: Station type: Station - name: Ueberdacht type: BOOL The data source for the [Station] select control should be loaded from the relative URL: "/StationService/station" (HTTP-GET) An existing Parkplatz entity should be loaded from the relative URL: "/StationService/parkplatz/{id}" (HTTP-GET) If a new Parkplatz entity has been created, the new entity should be posted to the relative URL: "/StationService/parkplatz" (HTTP-POST) If an existing Parkplatz entity has been updated, the modified entity should be sent to the relative URL: "/StationService/parkplatz/{id}" (HTTP-PUT) If an existing Parkplatz entity has to be deleted, the following relative URL should be called: "/StationService/parkplatz/{id}" (HTTP-DELETE) 4. The ReservierungView must contain the following fields: - name: EndeGeplant type: DATE - name: ErstelltAm type: DATE - name: Fahrzeug type: Fahrzeug - name: Mitgliedschaft type: Mitgliedschaft - name: StartGeplant type: DATE - name: StationAbholung type: Station - name: StationRueckgabe type: Station - name: Status type: STRING - name: StorniertAm type: DATE - name: Tarif type: Tarif The data source for the [StationRueckgabe] select control should be loaded from the relative URL: "/StationService/station" (HTTP-GET) The data source for the [Fahrzeug] select control should be loaded from the relative URL: "/FahrzeugService/fahrzeug" (HTTP-GET) The data source for the [StationAbholung] select control should be loaded from the relative URL: "/StationService/station" (HTTP-GET) The data source for the [Mitgliedschaft] select control should be loaded from the relative URL: "/StationService/mitgliedschaft" (HTTP-GET) The data source for the [Tarif] select control should be loaded from the relative URL: "/TarifService/tarif" (HTTP-GET) An existing Reservierung entity should be loaded from the relative URL: "/StationService/reservierung/{id}" (HTTP-GET) If a new Reservierung entity has been created, the new entity should be posted to the relative URL: "/StationService/reservierung" (HTTP-POST) If an existing Reservierung entity has been updated, the modified entity should be sent to the relative URL: "/StationService/reservierung/{id}" (HTTP-PUT) If an existing Reservierung entity has to be deleted, the following relative URL should be called: "/StationService/reservierung/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Fahrt columns: - column: Ende - column: StreckeKm - column: AbgerechneteKm - column: Start - column: Reservierung - column: AbgerechneteZeitMin The table should have the title "Fahrts" und the data must be loaded from the server with the following relative URL: "/StationService/fahrt/reservierung/{id}" Add a HTML table to the view with the following Vorfall columns: - column: Pannenhilfe - column: Vorfallstyp - column: Beschreibung - column: Fahrzeug - column: Reservierung - column: GemeldetAm The table should have the title "Vorfalls" und the data must be loaded from the server with the following relative URL: "/FahrzeugService/vorfall/reservierung/{id}" Add a HTML table to the view with the following Strafe columns: - column: FestgestelltAm - column: Strafentyp - column: Beschreibung - column: Betrag - column: Reservierung The table should have the title "Strafes" und the data must be loaded from the server with the following relative URL: "/StationService/strafe/reservierung/{id}" 5. The StationView must contain the following fields: - name: Adresse type: STRING - name: BahnhofBezug type: BOOL - name: Breitengrad type: STRING - name: CarsharingOrganisation type: CarsharingOrganisation - name: FlughafenBezug type: BOOL - name: Laengengrad type: STRING - name: Name type: STRING - name: OeffentlicherParkplatz type: BOOL - name: Stadt type: Stadt - name: Stationstyp type: Stationstyp The data source for the [Stationstyp] select control should be loaded from the relative URL: "/GeschaeftsmodellService/stationstyp" (HTTP-GET) The data source for the [CarsharingOrganisation] select control should be loaded from the relative URL: "/CarsharingOrganisationService/carsharingorganisation" (HTTP-GET) The data source for the [Stadt] select control should be loaded from the relative URL: "/CarsharingOrganisationService/stadt" (HTTP-GET) An existing Station entity should be loaded from the relative URL: "/StationService/station/{id}" (HTTP-GET) If a new Station entity has been created, the new entity should be posted to the relative URL: "/StationService/station" (HTTP-POST) If an existing Station entity has been updated, the modified entity should be sent to the relative URL: "/StationService/station/{id}" (HTTP-PUT) If an existing Station entity has to be deleted, the following relative URL should be called: "/StationService/station/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Parkplatz columns: - column: Reserviert - column: Ladefaehig - column: Ueberdacht - column: Code - column: Station The table should have the title "Parkplatzs" und the data must be loaded from the server with the following relative URL: "/StationService/parkplatz/station/{id}" Add a HTML table to the view with the following Reservierung columns: - column: StartGeplant - column: StationRueckgabe - column: StationAbholung - column: StorniertAm - column: Status - column: Mitgliedschaft - column: Tarif - column: EndeGeplant - column: Fahrzeug - column: ErstelltAm The table should have the title "Reservierungs" und the data must be loaded from the server with the following relative URL: "/StationService/reservierung/stationrueckgabe/{id}" Add a HTML table to the view with the following Reservierung columns: - column: StartGeplant - column: StationRueckgabe - column: StationAbholung - column: StorniertAm - column: Status - column: Mitgliedschaft - column: Tarif - column: EndeGeplant - column: Fahrzeug - column: ErstelltAm The table should have the title "Reservierungs" und the data must be loaded from the server with the following relative URL: "/StationService/reservierung/stationabholung/{id}" 6. The StrafeView must contain the following fields: - name: Beschreibung type: STRING - name: Betrag type: STRING - name: FestgestelltAm type: DATE - name: Reservierung type: Reservierung - name: Strafentyp type: Strafentyp The data source for the [Reservierung] select control should be loaded from the relative URL: "/StationService/reservierung" (HTTP-GET) The data source for the [Strafentyp] select control should be loaded from the relative URL: "/OrganisationstypService/strafentyp" (HTTP-GET) An existing Strafe entity should be loaded from the relative URL: "/StationService/strafe/{id}" (HTTP-GET) If a new Strafe entity has been created, the new entity should be posted to the relative URL: "/StationService/strafe" (HTTP-POST) If an existing Strafe entity has been updated, the modified entity should be sent to the relative URL: "/StationService/strafe/{id}" (HTTP-PUT) If an existing Strafe entity has to be deleted, the following relative URL should be called: "/StationService/strafe/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum