Overview
Summary
Contact
Donate
Imprint
Prompt for the
MarketApp
Please create a React-JS application for the MarketModule. The application has to offer the following views for the user interface: 1. CovidImpactView 2. MarketView 3. ReviewView 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 CovidImpactView must contain the following fields: - name: Company type: Company - name: Currency type: STRING - name: Market type: Market - name: MetricType type: STRING - name: Notes type: STRING - name: PeriodEnd type: DATE - name: PeriodStart type: DATE - name: Value type: DOUBLE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Market] select control should be loaded from the relative URL: "/MarketService/market" (HTTP-GET) An existing CovidImpact entity should be loaded from the relative URL: "/MarketService/covidimpact/{id}" (HTTP-GET) If a new CovidImpact entity has been created, the new entity should be posted to the relative URL: "/MarketService/covidimpact" (HTTP-POST) If an existing CovidImpact entity has been updated, the modified entity should be sent to the relative URL: "/MarketService/covidimpact/{id}" (HTTP-PUT) If an existing CovidImpact entity has to be deleted, the following relative URL should be called: "/MarketService/covidimpact/{id}" (HTTP-DELETE) 2. The MarketView must contain the following fields: - name: City type: City - name: Country type: Country - name: IsKeyMarket type: BOOL - name: RegionName type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/ListingService/city" (HTTP-GET) An existing Market entity should be loaded from the relative URL: "/MarketService/market/{id}" (HTTP-GET) If a new Market entity has been created, the new entity should be posted to the relative URL: "/MarketService/market" (HTTP-POST) If an existing Market entity has been updated, the modified entity should be sent to the relative URL: "/MarketService/market/{id}" (HTTP-PUT) If an existing Market entity has to be deleted, the following relative URL should be called: "/MarketService/market/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CovidImpact columns: - column: PeriodEnd - column: MetricType - column: Company - column: Market - column: Currency - column: Notes - column: Value - column: PeriodStart The table should have the title "CovidImpacts" und the data must be loaded from the server with the following relative URL: "/MarketService/covidimpact/market/{id}" 3. The ReviewView must contain the following fields: - name: Booking type: Booking - name: Comment type: STRING - name: CreatedAt type: DATE - name: RatingCleanliness type: DOUBLE - name: RatingCommunication type: DOUBLE - name: RatingLocation type: DOUBLE - name: RatingOverall type: DOUBLE - name: RatingValue type: DOUBLE - name: Reviewee type: LONG - name: Reviewer type: LONG - name: ReviewType type: STRING The data source for the [Booking] select control should be loaded from the relative URL: "/BookingService/booking" (HTTP-GET) An existing Review entity should be loaded from the relative URL: "/MarketService/review/{id}" (HTTP-GET) If a new Review entity has been created, the new entity should be posted to the relative URL: "/MarketService/review" (HTTP-POST) If an existing Review entity has been updated, the modified entity should be sent to the relative URL: "/MarketService/review/{id}" (HTTP-PUT) If an existing Review entity has to be deleted, the following relative URL should be called: "/MarketService/review/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint