Overview
Summary
Contact
Donate
Imprint
Prompt for the
CampaignView
Please create a React-JS view called "CampaignView" for the fields of the Campaign entity. The CampaignView must contain the following fields: - name: CampaignType type: CampaignType - name: IsGlobal type: BOOL - name: Name type: STRING - name: PeriodEnd type: DATE - name: PeriodStart type: DATE The data source for the [CampaignType] select control should be loaded from the relative URL: "/UserAccountService/campaigntype" (HTTP-GET) An existing Campaign entity should be loaded from the relative URL: "/UserAccountService/campaign/{id}" (HTTP-GET) If a new Campaign entity has been created, the new entity should be posted to the relative URL: "/UserAccountService/campaign" (HTTP-POST) If an existing Campaign entity has been updated, the modified entity should be sent to the relative URL: "/UserAccountService/campaign/{id}" (HTTP-PUT) If an existing Campaign entity has to be deleted, the following relative URL should be called: "/UserAccountService/campaign/{id}" (HTTP-DELETE) Add a HTML table to the view with the following UserCampaignStat columns: - column: TopArtist - column: TopTrack - column: Campaign - column: UserAccount - column: TotalMinutes - column: GeneratedAt The table should have the title "UserCampaignStats" und the data must be loaded from the server with the following relative URL: "/UserAccountService/usercampaignstat/campaign/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint