Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
AdApp
Please create a React-JS application for the AdModule. The application has to offer the following views for the user interface: 1. AdView 2. BlockedUserView 3. VideoAdView 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 AdView must contain the following fields: - name: AdvertiserName type: STRING - name: BudgetInfoJson type: STRING - name: CampaignName type: STRING - name: CreatedAt type: DATE - name: Format type: STRING - name: MediaUrl type: STRING - name: TargetingJson type: STRING An existing Ad entity should be loaded from the relative URL: "/AdService/ad/{id}" (HTTP-GET) If a new Ad entity has been created, the new entity should be posted to the relative URL: "/AdService/ad" (HTTP-POST) If an existing Ad entity has been updated, the modified entity should be sent to the relative URL: "/AdService/ad/{id}" (HTTP-PUT) If an existing Ad entity has to be deleted, the following relative URL should be called: "/AdService/ad/{id}" (HTTP-DELETE) Add a HTML table to the view with the following AdImpression columns: - column: Video - column: Ad - column: RevenueMicros - column: ClickedAt - column: User - column: ImpressionAt - column: Device The table should have the title "AdImpressions" und the data must be loaded from the server with the following relative URL: "/UserService/adimpression/ad/{id}" Add a HTML table to the view with the following VideoAd columns: - column: Video - column: Ad - column: CreatedAt - column: Position - column: InsertTimeSeconds The table should have the title "VideoAds" und the data must be loaded from the server with the following relative URL: "/AdService/videoad/ad/{id}" 2. The BlockedUserView must contain the following fields: - name: BlockedUser type: User - name: BlockerUser type: User - name: CreatedAt type: DATE The data source for the [BlockerUser] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) The data source for the [BlockedUser] select control should be loaded from the relative URL: "/UserService/user" (HTTP-GET) An existing BlockedUser entity should be loaded from the relative URL: "/AdService/blockeduser/{id}" (HTTP-GET) If a new BlockedUser entity has been created, the new entity should be posted to the relative URL: "/AdService/blockeduser" (HTTP-POST) If an existing BlockedUser entity has been updated, the modified entity should be sent to the relative URL: "/AdService/blockeduser/{id}" (HTTP-PUT) If an existing BlockedUser entity has to be deleted, the following relative URL should be called: "/AdService/blockeduser/{id}" (HTTP-DELETE) 3. The VideoAdView must contain the following fields: - name: Ad type: Ad - name: CreatedAt type: DATE - name: InsertTimeSeconds type: LONG - name: Position type: STRING - name: Video type: Video The data source for the [Ad] select control should be loaded from the relative URL: "/AdService/ad" (HTTP-GET) The data source for the [Video] select control should be loaded from the relative URL: "/VideoService/video" (HTTP-GET) An existing VideoAd entity should be loaded from the relative URL: "/AdService/videoad/{id}" (HTTP-GET) If a new VideoAd entity has been created, the new entity should be posted to the relative URL: "/AdService/videoad" (HTTP-POST) If an existing VideoAd entity has been updated, the modified entity should be sent to the relative URL: "/AdService/videoad/{id}" (HTTP-PUT) If an existing VideoAd entity has to be deleted, the following relative URL should be called: "/AdService/videoad/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint