Overview
Summary
Contact
Donate
Imprint
Prompt for the
DataCenterApp
Please create a React-JS application for the DataCenterModule. The application has to offer the following views for the user interface: 1. ComputerView 2. DataCenterView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The ComputerView must contain the following fields: - name: CpuCount type: LONG - name: DataCenter type: DataCenter - name: Hostname type: STRING - name: MemoryGb type: LONG - name: Role type: STRING - name: Status type: STRING The data source for the [DataCenter] select control should be loaded from the relative URL: "/DataCenterService/datacenter" (HTTP-GET) An existing Computer entity should be loaded from the relative URL: "/DataCenterService/computer/{id}" (HTTP-GET) If a new Computer entity has been created, the new entity should be posted to the relative URL: "/DataCenterService/computer" (HTTP-POST) If an existing Computer entity has been updated, the modified entity should be sent to the relative URL: "/DataCenterService/computer/{id}" (HTTP-PUT) If an existing Computer entity has to be deleted, the following relative URL should be called: "/DataCenterService/computer/{id}" (HTTP-DELETE) 2. The DataCenterView must contain the following fields: - name: AladdinSystem type: AladdinSystem - name: City type: STRING - name: Country type: STRING - name: Description type: STRING - name: Name type: STRING - name: Organization type: Organization - name: Region type: STRING The data source for the [Organization] select control should be loaded from the relative URL: "/OrganizationService/organization" (HTTP-GET) The data source for the [AladdinSystem] select control should be loaded from the relative URL: "/AladdinSystemService/aladdinsystem" (HTTP-GET) An existing DataCenter entity should be loaded from the relative URL: "/DataCenterService/datacenter/{id}" (HTTP-GET) If a new DataCenter entity has been created, the new entity should be posted to the relative URL: "/DataCenterService/datacenter" (HTTP-POST) If an existing DataCenter entity has been updated, the modified entity should be sent to the relative URL: "/DataCenterService/datacenter/{id}" (HTTP-PUT) If an existing DataCenter entity has to be deleted, the following relative URL should be called: "/DataCenterService/datacenter/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Computer columns: - column: CpuCount - column: MemoryGb - column: Hostname - column: DataCenter - column: Role - column: Status The table should have the title "Computers" und the data must be loaded from the server with the following relative URL: "/DataCenterService/computer/datacenter/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint