Overview
Summary
Contact
Donate
Imprint
Prompt for the
DeviceView
Please create a React-JS view called "DeviceView" for the fields of the Device entity. The DeviceView must contain the following fields: - name: DeviceType type: DeviceType - name: IsSpotifyConnectCapable type: BOOL - name: ModelName type: STRING - name: PlatformApp type: PlatformApp - name: RegisteredAt type: DATE - name: UserAccount type: UserAccount The data source for the [DeviceType] select control should be loaded from the relative URL: "/DeviceService/devicetype" (HTTP-GET) The data source for the [PlatformApp] select control should be loaded from the relative URL: "/DeviceService/platformapp" (HTTP-GET) The data source for the [UserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Device entity should be loaded from the relative URL: "/DeviceService/device/{id}" (HTTP-GET) If a new Device entity has been created, the new entity should be posted to the relative URL: "/DeviceService/device" (HTTP-POST) If an existing Device entity has been updated, the modified entity should be sent to the relative URL: "/DeviceService/device/{id}" (HTTP-PUT) If an existing Device entity has to be deleted, the following relative URL should be called: "/DeviceService/device/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SmartDeviceIntegration columns: - column: SupportsVoice - column: PartnerCompany - column: DeviceType - column: SupportsSpotifyConnect The table should have the title "SmartDeviceIntegrations" und the data must be loaded from the server with the following relative URL: "/PartnerCompanyService/smartdeviceintegration/devicetype/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint