Overview
Summary
Contact
Donate
Imprint
Prompt for the
ContractView
Please create a React-JS view called "ContractView" for the fields of the Contract entity. The ContractView must contain the following fields: - name: Company type: Company - name: Customer type: Customer - name: Description type: STRING - name: EndDate type: DATE - name: Name type: STRING - name: Program type: Program - name: SignedDate type: DATE - name: StartDate type: DATE - name: ValueUsd type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Program] select control should be loaded from the relative URL: "/CompanyService/program" (HTTP-GET) The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing Contract entity should be loaded from the relative URL: "/CompanyService/contract/{id}" (HTTP-GET) If a new Contract entity has been created, the new entity should be posted to the relative URL: "/CompanyService/contract" (HTTP-POST) If an existing Contract entity has been updated, the modified entity should be sent to the relative URL: "/CompanyService/contract/{id}" (HTTP-PUT) If an existing Contract entity has to be deleted, the following relative URL should be called: "/CompanyService/contract/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Mission columns: - column: Notes - column: Spacecraft - column: Contract - column: Customer - column: Company - column: Name - column: LaunchVehicle - column: LandingSite - column: Program - column: MissionType - column: Orbit - column: LaunchDateTime - column: Description - column: LaunchSite - column: Success The table should have the title "Missions" und the data must be loaded from the server with the following relative URL: "/MissionService/mission/contract/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint