Overview
Summary
Contact
Donate
Imprint
Prompt for the
UserDeviceApp
Please create a React-JS application for the UserDeviceModule. The application has to offer the following views for the user interface: 1. AppVersionView 2. EncryptionKeyView 3. PlatformSupportView 4. UserDeviceView 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 AppVersionView must contain the following fields: - name: PlatformSupport type: PlatformSupport - name: ReleaseChannel type: STRING - name: ReleaseDate type: DATE - name: SizeMegabytes type: STRING - name: VersionString type: STRING The data source for the [PlatformSupport] select control should be loaded from the relative URL: "/UserDeviceService/platformsupport" (HTTP-GET) An existing AppVersion entity should be loaded from the relative URL: "/UserDeviceService/appversion/{id}" (HTTP-GET) If a new AppVersion entity has been created, the new entity should be posted to the relative URL: "/UserDeviceService/appversion" (HTTP-POST) If an existing AppVersion entity has been updated, the modified entity should be sent to the relative URL: "/UserDeviceService/appversion/{id}" (HTTP-PUT) If an existing AppVersion entity has to be deleted, the following relative URL should be called: "/UserDeviceService/appversion/{id}" (HTTP-DELETE) Add a HTML table to the view with the following UserDevice columns: - column: CreatedAt - column: AppVersion - column: IsPrimary - column: DeviceModel - column: OsVersion - column: UserAccount - column: LastSeenAt - column: PlatformSupport The table should have the title "UserDevices" und the data must be loaded from the server with the following relative URL: "/UserDeviceService/userdevice/appversion/{id}" 2. The EncryptionKeyView must contain the following fields: - name: CreatedAt type: DATE - name: KeyType type: STRING - name: PublicKey type: STRING - name: RevokedAt type: DATE - name: UserAccount type: UserAccount - name: UserDevice type: UserDevice The data source for the [UserDevice] select control should be loaded from the relative URL: "/UserDeviceService/userdevice" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing EncryptionKey entity should be loaded from the relative URL: "/UserDeviceService/encryptionkey/{id}" (HTTP-GET) If a new EncryptionKey entity has been created, the new entity should be posted to the relative URL: "/UserDeviceService/encryptionkey" (HTTP-POST) If an existing EncryptionKey entity has been updated, the modified entity should be sent to the relative URL: "/UserDeviceService/encryptionkey/{id}" (HTTP-PUT) If an existing EncryptionKey entity has to be deleted, the following relative URL should be called: "/UserDeviceService/encryptionkey/{id}" (HTTP-DELETE) 3. The PlatformSupportView must contain the following fields: - name: MinOsVersion type: STRING - name: Name type: STRING - name: Notes type: STRING - name: Status type: STRING - name: Type type: STRING An existing PlatformSupport entity should be loaded from the relative URL: "/UserDeviceService/platformsupport/{id}" (HTTP-GET) If a new PlatformSupport entity has been created, the new entity should be posted to the relative URL: "/UserDeviceService/platformsupport" (HTTP-POST) If an existing PlatformSupport entity has been updated, the modified entity should be sent to the relative URL: "/UserDeviceService/platformsupport/{id}" (HTTP-PUT) If an existing PlatformSupport entity has to be deleted, the following relative URL should be called: "/UserDeviceService/platformsupport/{id}" (HTTP-DELETE) Add a HTML table to the view with the following AppVersion columns: - column: PlatformSupport - column: VersionString - column: ReleaseDate - column: ReleaseChannel - column: SizeMegabytes The table should have the title "AppVersions" und the data must be loaded from the server with the following relative URL: "/UserDeviceService/appversion/platformsupport/{id}" Add a HTML table to the view with the following UserDevice columns: - column: CreatedAt - column: AppVersion - column: IsPrimary - column: DeviceModel - column: OsVersion - column: UserAccount - column: LastSeenAt - column: PlatformSupport The table should have the title "UserDevices" und the data must be loaded from the server with the following relative URL: "/UserDeviceService/userdevice/platformsupport/{id}" 4. The UserDeviceView must contain the following fields: - name: AppVersion type: AppVersion - name: CreatedAt type: DATE - name: DeviceModel type: STRING - name: IsPrimary type: BOOL - name: LastSeenAt type: DATE - name: OsVersion type: STRING - name: PlatformSupport type: PlatformSupport - name: UserAccount type: UserAccount The data source for the [AppVersion] select control should be loaded from the relative URL: "/UserDeviceService/appversion" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [PlatformSupport] select control should be loaded from the relative URL: "/UserDeviceService/platformsupport" (HTTP-GET) An existing UserDevice entity should be loaded from the relative URL: "/UserDeviceService/userdevice/{id}" (HTTP-GET) If a new UserDevice entity has been created, the new entity should be posted to the relative URL: "/UserDeviceService/userdevice" (HTTP-POST) If an existing UserDevice entity has been updated, the modified entity should be sent to the relative URL: "/UserDeviceService/userdevice/{id}" (HTTP-PUT) If an existing UserDevice entity has to be deleted, the following relative URL should be called: "/UserDeviceService/userdevice/{id}" (HTTP-DELETE) Add a HTML table to the view with the following EncryptionKey columns: - column: RevokedAt - column: UserAccount - column: UserDevice - column: KeyType - column: PublicKey - column: CreatedAt The table should have the title "EncryptionKeys" und the data must be loaded from the server with the following relative URL: "/UserDeviceService/encryptionkey/userdevice/{id}" Add a HTML table to the view with the following LoginSession columns: - column: UserDevice - column: UserAccount - column: LoggedInAt - column: IpAddress - column: LoginMethod - column: LoggedOutAt - column: IsActive The table should have the title "LoginSessions" und the data must be loaded from the server with the following relative URL: "/VoiceCallService/loginsession/userdevice/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint