Overview
Summary
Contact
Donate
Imprint
Prompt for the
ShipView
Please create a React-JS view called "ShipView" for the fields of the Ship entity. The ShipView must contain the following fields: - name: Company type: Company - name: HomePort type: STRING - name: Name type: STRING - name: Notes type: STRING - name: ShipType type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing Ship entity should be loaded from the relative URL: "/CompanyService/ship/{id}" (HTTP-GET) If a new Ship entity has been created, the new entity should be posted to the relative URL: "/CompanyService/ship" (HTTP-POST) If an existing Ship entity has been updated, the modified entity should be sent to the relative URL: "/CompanyService/ship/{id}" (HTTP-PUT) If an existing Ship entity has to be deleted, the following relative URL should be called: "/CompanyService/ship/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ShipAssignment columns: - column: ShipRole - column: Notes - column: Mission - column: Ship The table should have the title "ShipAssignments" und the data must be loaded from the server with the following relative URL: "/CompanyService/shipassignment/ship/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint