Overview
Summary
Contact
Donate
Imprint
Prompt for the
TweetApp
Please create a React-JS application for the TweetModule. The application has to offer the following views for the user interface: 1. PollView 2. PollOptionView 3. PromotedTweetView 4. RetweetView 5. TweetView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 views are defined below. 1. The PollView must contain the following fields: - name: CreatedAt type: STRING - name: DurationMinutes type: INT - name: EndsAt type: STRING - name: Question type: STRING - name: Tweet type: Tweet The data source for the [Tweet] select control should be loaded from the relative URL: "/TweetService/tweet" (HTTP-GET) An existing Poll entity should be loaded from the relative URL: "/TweetService/poll/{id}" (HTTP-GET) If a new Poll entity has been created, the new entity should be posted to the relative URL: "/TweetService/poll" (HTTP-POST) If an existing Poll entity has been updated, the modified entity should be sent to the relative URL: "/TweetService/poll/{id}" (HTTP-PUT) If an existing Poll entity has to be deleted, the following relative URL should be called: "/TweetService/poll/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PollOption columns: - column: VoteCount - column: Poll - column: Text - column: Position The table should have the title "PollOptions" und the data must be loaded from the server with the following relative URL: "/TweetService/polloption/poll/{id}" 2. The PollOptionView must contain the following fields: - name: Poll type: Poll - name: Position type: INT - name: Text type: STRING - name: VoteCount type: LONG The data source for the [Poll] select control should be loaded from the relative URL: "/TweetService/poll" (HTTP-GET) An existing PollOption entity should be loaded from the relative URL: "/TweetService/polloption/{id}" (HTTP-GET) If a new PollOption entity has been created, the new entity should be posted to the relative URL: "/TweetService/polloption" (HTTP-POST) If an existing PollOption entity has been updated, the modified entity should be sent to the relative URL: "/TweetService/polloption/{id}" (HTTP-PUT) If an existing PollOption entity has to be deleted, the following relative URL should be called: "/TweetService/polloption/{id}" (HTTP-DELETE) 3. The PromotedTweetView must contain the following fields: - name: Campaign type: Campaign - name: CreatedAt type: STRING - name: LineItemName type: STRING - name: Status type: STRING - name: Tweet type: Tweet The data source for the [Campaign] select control should be loaded from the relative URL: "/CampaignService/campaign" (HTTP-GET) The data source for the [Tweet] select control should be loaded from the relative URL: "/TweetService/tweet" (HTTP-GET) An existing PromotedTweet entity should be loaded from the relative URL: "/TweetService/promotedtweet/{id}" (HTTP-GET) If a new PromotedTweet entity has been created, the new entity should be posted to the relative URL: "/TweetService/promotedtweet" (HTTP-POST) If an existing PromotedTweet entity has been updated, the modified entity should be sent to the relative URL: "/TweetService/promotedtweet/{id}" (HTTP-PUT) If an existing PromotedTweet entity has to be deleted, the following relative URL should be called: "/TweetService/promotedtweet/{id}" (HTTP-DELETE) 4. The RetweetView must contain the following fields: - name: Comment type: STRING - name: CreatedAt type: STRING - name: IsQuote type: BOOL - name: Tweet type: Tweet - name: User type: UserAccount The data source for the [User] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [Tweet] select control should be loaded from the relative URL: "/TweetService/tweet" (HTTP-GET) An existing Retweet entity should be loaded from the relative URL: "/TweetService/retweet/{id}" (HTTP-GET) If a new Retweet entity has been created, the new entity should be posted to the relative URL: "/TweetService/retweet" (HTTP-POST) If an existing Retweet entity has been updated, the modified entity should be sent to the relative URL: "/TweetService/retweet/{id}" (HTTP-PUT) If an existing Retweet entity has to be deleted, the following relative URL should be called: "/TweetService/retweet/{id}" (HTTP-DELETE) 5. The TweetView must contain the following fields: - name: Content type: STRING - name: CreatedAt type: STRING - name: InReplyToTweet type: LONG - name: InReplyToUser type: UserAccount - name: IsDeleted type: BOOL - name: IsSensitive type: BOOL - name: Language type: STRING - name: LikeCount type: LONG - name: QuoteTweet type: LONG - name: ReplyCount type: LONG - name: RetweetCount type: LONG - name: SourceApp type: STRING - name: User type: UserAccount - name: ViewCount type: LONG The data source for the [InReplyToUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [User] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Tweet entity should be loaded from the relative URL: "/TweetService/tweet/{id}" (HTTP-GET) If a new Tweet entity has been created, the new entity should be posted to the relative URL: "/TweetService/tweet" (HTTP-POST) If an existing Tweet entity has been updated, the modified entity should be sent to the relative URL: "/TweetService/tweet/{id}" (HTTP-PUT) If an existing Tweet entity has to be deleted, the following relative URL should be called: "/TweetService/tweet/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PromotedTweet columns: - column: Campaign - column: Tweet - column: Status - column: CreatedAt - column: LineItemName The table should have the title "PromotedTweets" und the data must be loaded from the server with the following relative URL: "/TweetService/promotedtweet/tweet/{id}" Add a HTML table to the view with the following Poll columns: - column: DurationMinutes - column: Question - column: CreatedAt - column: EndsAt - column: Tweet The table should have the title "Polls" und the data must be loaded from the server with the following relative URL: "/TweetService/poll/tweet/{id}" Add a HTML table to the view with the following Media columns: - column: DurationSeconds - column: Type - column: Tweet - column: Height - column: AltText - column: Url - column: Width The table should have the title "Medias" und the data must be loaded from the server with the following relative URL: "/ListService/media/tweet/{id}" Add a HTML table to the view with the following Report columns: - column: ReportedTweet - column: ReportedUser - column: ReporterUser - column: ResolvedAt - column: Status - column: ResolverUser - column: Description - column: Category - column: CreatedAt The table should have the title "Reports" und the data must be loaded from the server with the following relative URL: "/SpaceService/report/reportedtweet/{id}" Add a HTML table to the view with the following TweetHashtag columns: - column: Tweet - column: Hashtag The table should have the title "TweetHashtags" und the data must be loaded from the server with the following relative URL: "/HashtagService/tweethashtag/tweet/{id}" Add a HTML table to the view with the following Retweet columns: - column: User - column: Comment - column: IsQuote - column: CreatedAt - column: Tweet The table should have the title "Retweets" und the data must be loaded from the server with the following relative URL: "/TweetService/retweet/tweet/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint