Overview
Summary
Contact
Donate
Imprint
Prompt for the
MarketRegionApp
Please create a React-JS application for the MarketRegionModule. The application has to offer the following views for the user interface: 1. CountryRegionView 2. MarketRegionView 3. RoyaltyLineView 4. RoyaltyStatementView 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 CountryRegionView must contain the following fields: - name: Country type: Country - name: MarketRegion type: MarketRegion The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [MarketRegion] select control should be loaded from the relative URL: "/MarketRegionService/marketregion" (HTTP-GET) An existing CountryRegion entity should be loaded from the relative URL: "/MarketRegionService/countryregion/{id}" (HTTP-GET) If a new CountryRegion entity has been created, the new entity should be posted to the relative URL: "/MarketRegionService/countryregion" (HTTP-POST) If an existing CountryRegion entity has been updated, the modified entity should be sent to the relative URL: "/MarketRegionService/countryregion/{id}" (HTTP-PUT) If an existing CountryRegion entity has to be deleted, the following relative URL should be called: "/MarketRegionService/countryregion/{id}" (HTTP-DELETE) 2. The MarketRegionView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing MarketRegion entity should be loaded from the relative URL: "/MarketRegionService/marketregion/{id}" (HTTP-GET) If a new MarketRegion entity has been created, the new entity should be posted to the relative URL: "/MarketRegionService/marketregion" (HTTP-POST) If an existing MarketRegion entity has been updated, the modified entity should be sent to the relative URL: "/MarketRegionService/marketregion/{id}" (HTTP-PUT) If an existing MarketRegion entity has to be deleted, the following relative URL should be called: "/MarketRegionService/marketregion/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RoyaltyStatement columns: - column: PeriodStart - column: RevenueAds - column: TotalStreams - column: PeriodEnd - column: RevenueSubscriptions - column: MarketRegion The table should have the title "RoyaltyStatements" und the data must be loaded from the server with the following relative URL: "/MarketRegionService/royaltystatement/marketregion/{id}" Add a HTML table to the view with the following CountryRegion columns: - column: MarketRegion - column: Country The table should have the title "CountryRegions" und the data must be loaded from the server with the following relative URL: "/MarketRegionService/countryregion/marketregion/{id}" 3. The RoyaltyLineView must contain the following fields: - name: AmountEur type: DOUBLE - name: AmountUsd type: DOUBLE - name: RoyaltyRecipient type: RoyaltyRecipient - name: RoyaltyStatement type: RoyaltyStatement - name: SharePercent type: DOUBLE - name: StreamsCount type: LONG - name: Track type: Track The data source for the [RoyaltyStatement] select control should be loaded from the relative URL: "/MarketRegionService/royaltystatement" (HTTP-GET) The data source for the [Track] select control should be loaded from the relative URL: "/TrackService/track" (HTTP-GET) The data source for the [RoyaltyRecipient] select control should be loaded from the relative URL: "/CountryService/royaltyrecipient" (HTTP-GET) An existing RoyaltyLine entity should be loaded from the relative URL: "/MarketRegionService/royaltyline/{id}" (HTTP-GET) If a new RoyaltyLine entity has been created, the new entity should be posted to the relative URL: "/MarketRegionService/royaltyline" (HTTP-POST) If an existing RoyaltyLine entity has been updated, the modified entity should be sent to the relative URL: "/MarketRegionService/royaltyline/{id}" (HTTP-PUT) If an existing RoyaltyLine entity has to be deleted, the following relative URL should be called: "/MarketRegionService/royaltyline/{id}" (HTTP-DELETE) 4. The RoyaltyStatementView must contain the following fields: - name: MarketRegion type: MarketRegion - name: PeriodEnd type: DATE - name: PeriodStart type: DATE - name: RevenueAds type: DOUBLE - name: RevenueSubscriptions type: DOUBLE - name: TotalStreams type: LONG The data source for the [MarketRegion] select control should be loaded from the relative URL: "/MarketRegionService/marketregion" (HTTP-GET) An existing RoyaltyStatement entity should be loaded from the relative URL: "/MarketRegionService/royaltystatement/{id}" (HTTP-GET) If a new RoyaltyStatement entity has been created, the new entity should be posted to the relative URL: "/MarketRegionService/royaltystatement" (HTTP-POST) If an existing RoyaltyStatement entity has been updated, the modified entity should be sent to the relative URL: "/MarketRegionService/royaltystatement/{id}" (HTTP-PUT) If an existing RoyaltyStatement entity has to be deleted, the following relative URL should be called: "/MarketRegionService/royaltystatement/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RoyaltyLine columns: - column: StreamsCount - column: RoyaltyRecipient - column: AmountUsd - column: AmountEur - column: Track - column: RoyaltyStatement - column: SharePercent The table should have the title "RoyaltyLines" und the data must be loaded from the server with the following relative URL: "/MarketRegionService/royaltyline/royaltystatement/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint