Overview
Summary
Contact
Donate
Imprint
Prompt for the
CityApp
Please create a React-JS application for the CityModule. The application has to offer the following views for the user interface: 1. AcquisitionView 2. CityView 3. ExchangeVenueView 4. TradingVolumeStatView 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 AcquisitionView must contain the following fields: - name: AcquirerCompany type: Company - name: AmountUsd type: DOUBLE - name: AnnouncementDate type: DATE - name: CloseDate type: DATE - name: Description type: STRING - name: TargetCompany type: Company The data source for the [TargetCompany] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [AcquirerCompany] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing Acquisition entity should be loaded from the relative URL: "/CityService/acquisition/{id}" (HTTP-GET) If a new Acquisition entity has been created, the new entity should be posted to the relative URL: "/CityService/acquisition" (HTTP-POST) If an existing Acquisition entity has been updated, the modified entity should be sent to the relative URL: "/CityService/acquisition/{id}" (HTTP-PUT) If an existing Acquisition entity has to be deleted, the following relative URL should be called: "/CityService/acquisition/{id}" (HTTP-DELETE) 2. The CityView must contain the following fields: - name: Country type: Country - name: Name type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/ExchangeService/country" (HTTP-GET) An existing City entity should be loaded from the relative URL: "/CityService/city/{id}" (HTTP-GET) If a new City entity has been created, the new entity should be posted to the relative URL: "/CityService/city" (HTTP-POST) If an existing City entity has been updated, the modified entity should be sent to the relative URL: "/CityService/city/{id}" (HTTP-PUT) If an existing City entity has to be deleted, the following relative URL should be called: "/CityService/city/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Exchange columns: - column: ListingsCount - column: Type - column: FoundedDate - column: Website - column: OwnerCompany - column: Name - column: MarketCapUsd - column: Currency - column: IsElectronic - column: LocationCity - column: LocationCountry The table should have the title "Exchanges" und the data must be loaded from the server with the following relative URL: "/ExchangeService/exchange/locationcity/{id}" Add a HTML table to the view with the following ExchangeVenue columns: - column: IsPrimary - column: Exchange - column: City The table should have the title "ExchangeVenues" und the data must be loaded from the server with the following relative URL: "/CityService/exchangevenue/city/{id}" 3. The ExchangeVenueView must contain the following fields: - name: City type: City - name: Exchange type: Exchange - name: IsPrimary type: BOOL The data source for the [Exchange] select control should be loaded from the relative URL: "/ExchangeService/exchange" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/CityService/city" (HTTP-GET) An existing ExchangeVenue entity should be loaded from the relative URL: "/CityService/exchangevenue/{id}" (HTTP-GET) If a new ExchangeVenue entity has been created, the new entity should be posted to the relative URL: "/CityService/exchangevenue" (HTTP-POST) If an existing ExchangeVenue entity has been updated, the modified entity should be sent to the relative URL: "/CityService/exchangevenue/{id}" (HTTP-PUT) If an existing ExchangeVenue entity has to be deleted, the following relative URL should be called: "/CityService/exchangevenue/{id}" (HTTP-DELETE) 4. The TradingVolumeStatView must contain the following fields: - name: AverageDailyTrades type: LONG - name: Exchange type: Exchange - name: MarketSharePercent type: DOUBLE - name: Year type: INT The data source for the [Exchange] select control should be loaded from the relative URL: "/ExchangeService/exchange" (HTTP-GET) An existing TradingVolumeStat entity should be loaded from the relative URL: "/CityService/tradingvolumestat/{id}" (HTTP-GET) If a new TradingVolumeStat entity has been created, the new entity should be posted to the relative URL: "/CityService/tradingvolumestat" (HTTP-POST) If an existing TradingVolumeStat entity has been updated, the modified entity should be sent to the relative URL: "/CityService/tradingvolumestat/{id}" (HTTP-PUT) If an existing TradingVolumeStat entity has to be deleted, the following relative URL should be called: "/CityService/tradingvolumestat/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint