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. PolicyDocumentView 3. UserLanguageView 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 LanguageView must contain the following fields: - name: Code type: STRING - name: Name type: STRING - name: NativeName 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 UserLanguage columns: - column: Language - column: IsPrimary - column: User - column: ProficiencyLevel The table should have the title "UserLanguages" und the data must be loaded from the server with the following relative URL: "/LanguageService/userlanguage/language/{id}" 2. The PolicyDocumentView must contain the following fields: - name: EffectiveDate type: DATE - name: Name type: STRING - name: Url type: STRING - name: Version type: STRING An existing PolicyDocument entity should be loaded from the relative URL: "/LanguageService/policydocument/{id}" (HTTP-GET) If a new PolicyDocument entity has been created, the new entity should be posted to the relative URL: "/LanguageService/policydocument" (HTTP-POST) If an existing PolicyDocument entity has been updated, the modified entity should be sent to the relative URL: "/LanguageService/policydocument/{id}" (HTTP-PUT) If an existing PolicyDocument entity has to be deleted, the following relative URL should be called: "/LanguageService/policydocument/{id}" (HTTP-DELETE) 3. The UserLanguageView must contain the following fields: - name: IsPrimary type: BOOL - name: Language type: Language - name: ProficiencyLevel type: STRING - 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 [Language] select control should be loaded from the relative URL: "/LanguageService/language" (HTTP-GET) An existing UserLanguage entity should be loaded from the relative URL: "/LanguageService/userlanguage/{id}" (HTTP-GET) If a new UserLanguage entity has been created, the new entity should be posted to the relative URL: "/LanguageService/userlanguage" (HTTP-POST) If an existing UserLanguage entity has been updated, the modified entity should be sent to the relative URL: "/LanguageService/userlanguage/{id}" (HTTP-PUT) If an existing UserLanguage entity has to be deleted, the following relative URL should be called: "/LanguageService/userlanguage/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint