Overview
Summary
Contact
Donate
Imprint
Prompt for the
ServerNodeApp
Please create a React-JS application for the ServerNodeModule. The application has to offer the following views for the user interface: 1. PreKeyView 2. ServerLogEntryView 3. ServerNodeView 4. UserSettingView 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 PreKeyView must contain the following fields: - name: ConsumedAt type: DATE - name: CreatedAt type: DATE - name: Device type: Device - name: IsSigned type: BOOL - name: KeyId type: INT - name: PublicKey type: STRING The data source for the [Device] select control should be loaded from the relative URL: "/MessageService/device" (HTTP-GET) An existing PreKey entity should be loaded from the relative URL: "/ServerNodeService/prekey/{id}" (HTTP-GET) If a new PreKey entity has been created, the new entity should be posted to the relative URL: "/ServerNodeService/prekey" (HTTP-POST) If an existing PreKey entity has been updated, the modified entity should be sent to the relative URL: "/ServerNodeService/prekey/{id}" (HTTP-PUT) If an existing PreKey entity has to be deleted, the following relative URL should be called: "/ServerNodeService/prekey/{id}" (HTTP-DELETE) 2. The ServerLogEntryView must contain the following fields: - name: Conversation type: Conversation - name: CreatedAt type: DATE - name: Device type: Device - name: EventType type: STRING - name: LogLevel type: STRING - name: Message type: Message - name: ServerNode type: ServerNode - name: UserAccount type: UserAccount The data source for the [Message] select control should be loaded from the relative URL: "/MessageService/message" (HTTP-GET) The data source for the [Device] select control should be loaded from the relative URL: "/MessageService/device" (HTTP-GET) The data source for the [Conversation] select control should be loaded from the relative URL: "/ConversationService/conversation" (HTTP-GET) The data source for the [ServerNode] select control should be loaded from the relative URL: "/ServerNodeService/servernode" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing ServerLogEntry entity should be loaded from the relative URL: "/ServerNodeService/serverlogentry/{id}" (HTTP-GET) If a new ServerLogEntry entity has been created, the new entity should be posted to the relative URL: "/ServerNodeService/serverlogentry" (HTTP-POST) If an existing ServerLogEntry entity has been updated, the modified entity should be sent to the relative URL: "/ServerNodeService/serverlogentry/{id}" (HTTP-PUT) If an existing ServerLogEntry entity has to be deleted, the following relative URL should be called: "/ServerNodeService/serverlogentry/{id}" (HTTP-DELETE) 3. The ServerNodeView must contain the following fields: - name: CreatedAt type: DATE - name: IsActive type: BOOL - name: Name type: STRING - name: Region type: STRING An existing ServerNode entity should be loaded from the relative URL: "/ServerNodeService/servernode/{id}" (HTTP-GET) If a new ServerNode entity has been created, the new entity should be posted to the relative URL: "/ServerNodeService/servernode" (HTTP-POST) If an existing ServerNode entity has been updated, the modified entity should be sent to the relative URL: "/ServerNodeService/servernode/{id}" (HTTP-PUT) If an existing ServerNode entity has to be deleted, the following relative URL should be called: "/ServerNodeService/servernode/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ServerLogEntry columns: - column: EventType - column: UserAccount - column: Conversation - column: LogLevel - column: Device - column: Message - column: ServerNode - column: CreatedAt The table should have the title "ServerLogEntrys" und the data must be loaded from the server with the following relative URL: "/ServerNodeService/serverlogentry/servernode/{id}" 4. The UserSettingView must contain the following fields: - name: CreatedAt type: DATE - name: DisappearingMessagesDefaultSeconds type: INT - name: LastSeenSharing type: STRING - name: ReadReceiptsEnabled type: BOOL - name: Theme type: STRING - name: TypingIndicatorsEnabled type: BOOL - name: UpdatedAt type: DATE - name: UserAccount type: UserAccount The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing UserSetting entity should be loaded from the relative URL: "/ServerNodeService/usersetting/{id}" (HTTP-GET) If a new UserSetting entity has been created, the new entity should be posted to the relative URL: "/ServerNodeService/usersetting" (HTTP-POST) If an existing UserSetting entity has been updated, the modified entity should be sent to the relative URL: "/ServerNodeService/usersetting/{id}" (HTTP-PUT) If an existing UserSetting entity has to be deleted, the following relative URL should be called: "/ServerNodeService/usersetting/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint