Overview
Summary
Contact
Donate
Imprint
Prompt for the
LanguageApp
Please create a React-JS application for the LanguageModule. The application has to offer the following views for the user interface: 1. LanguageView 2. ReviewVoteView 3. TitleLanguageView 4. TitleReviewView 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 LanguageView must contain the following fields: - name: IsoCode type: STRING - name: Name type: STRING An existing Language entity should be loaded from the relative URL: "/LanguageService/language/{id}" (HTTP-GET) If a new Language entity has been created, the new entity should be posted to the relative URL: "/LanguageService/language" (HTTP-POST) If an existing Language entity has been updated, the modified entity should be sent to the relative URL: "/LanguageService/language/{id}" (HTTP-PUT) If an existing Language entity has to be deleted, the following relative URL should be called: "/LanguageService/language/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TitleReview columns: - column: HelpfulnessScore - column: Language - column: UpdatedAt - column: CreatedAt - column: UserAccount - column: Title - column: Body - column: Headline - column: IsSpoiler The table should have the title "TitleReviews" und the data must be loaded from the server with the following relative URL: "/LanguageService/titlereview/language/{id}" Add a HTML table to the view with the following EditorialArticle columns: - column: Body - column: PublishedAt - column: AuthorName - column: TitleText - column: UpdatedAt - column: Language The table should have the title "EditorialArticles" und the data must be loaded from the server with the following relative URL: "/EditorialArticleService/editorialarticle/language/{id}" Add a HTML table to the view with the following UserAccount columns: - column: PasswordHash - column: Country - column: CreatedAt - column: PreferredLanguage - column: DisplayName - column: Email - column: UpdatedAt - column: Username - column: IsActive The table should have the title "UserAccounts" und the data must be loaded from the server with the following relative URL: "/UserAccountService/useraccount/preferredlanguage/{id}" Add a HTML table to the view with the following TitleLanguage columns: - column: Title - column: Language - column: IsOriginalLanguage The table should have the title "TitleLanguages" und the data must be loaded from the server with the following relative URL: "/LanguageService/titlelanguage/language/{id}" 2. The ReviewVoteView must contain the following fields: - name: IsHelpful type: BOOL - name: TitleReview type: TitleReview - name: UserAccount type: UserAccount - name: VotedAt type: DATE The data source for the [TitleReview] select control should be loaded from the relative URL: "/LanguageService/titlereview" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing ReviewVote entity should be loaded from the relative URL: "/LanguageService/reviewvote/{id}" (HTTP-GET) If a new ReviewVote entity has been created, the new entity should be posted to the relative URL: "/LanguageService/reviewvote" (HTTP-POST) If an existing ReviewVote entity has been updated, the modified entity should be sent to the relative URL: "/LanguageService/reviewvote/{id}" (HTTP-PUT) If an existing ReviewVote entity has to be deleted, the following relative URL should be called: "/LanguageService/reviewvote/{id}" (HTTP-DELETE) 3. The TitleLanguageView must contain the following fields: - name: IsOriginalLanguage type: BOOL - name: Language type: Language - name: Title type: Title The data source for the [Language] select control should be loaded from the relative URL: "/LanguageService/language" (HTTP-GET) The data source for the [Title] select control should be loaded from the relative URL: "/TitleService/title" (HTTP-GET) An existing TitleLanguage entity should be loaded from the relative URL: "/LanguageService/titlelanguage/{id}" (HTTP-GET) If a new TitleLanguage entity has been created, the new entity should be posted to the relative URL: "/LanguageService/titlelanguage" (HTTP-POST) If an existing TitleLanguage entity has been updated, the modified entity should be sent to the relative URL: "/LanguageService/titlelanguage/{id}" (HTTP-PUT) If an existing TitleLanguage entity has to be deleted, the following relative URL should be called: "/LanguageService/titlelanguage/{id}" (HTTP-DELETE) 4. The TitleReviewView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: Headline type: STRING - name: HelpfulnessScore type: LONG - name: IsSpoiler type: BOOL - name: Language type: Language - name: Title type: Title - name: UpdatedAt type: DATE - name: UserAccount type: UserAccount The data source for the [Language] select control should be loaded from the relative URL: "/LanguageService/language" (HTTP-GET) The data source for the [Title] select control should be loaded from the relative URL: "/TitleService/title" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing TitleReview entity should be loaded from the relative URL: "/LanguageService/titlereview/{id}" (HTTP-GET) If a new TitleReview entity has been created, the new entity should be posted to the relative URL: "/LanguageService/titlereview" (HTTP-POST) If an existing TitleReview entity has been updated, the modified entity should be sent to the relative URL: "/LanguageService/titlereview/{id}" (HTTP-PUT) If an existing TitleReview entity has to be deleted, the following relative URL should be called: "/LanguageService/titlereview/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ReviewVote columns: - column: VotedAt - column: IsHelpful - column: TitleReview - column: UserAccount The table should have the title "ReviewVotes" und the data must be loaded from the server with the following relative URL: "/LanguageService/reviewvote/titlereview/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint