Overview
Summary
Contact
Donate
Imprint
Prompt for the
CustomerView
Please create a React-JS view called "CustomerView" for the fields of the Customer entity. The CustomerView must contain the following fields: - name: Country type: STRING - name: CustomerType type: STRING - name: Name type: STRING - name: Notes type: STRING An existing Customer entity should be loaded from the relative URL: "/CustomerService/customer/{id}" (HTTP-GET) If a new Customer entity has been created, the new entity should be posted to the relative URL: "/CustomerService/customer" (HTTP-POST) If an existing Customer entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/customer/{id}" (HTTP-PUT) If an existing Customer entity has to be deleted, the following relative URL should be called: "/CustomerService/customer/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Contract columns: - column: Name - column: EndDate - column: Program - column: Description - column: ValueUsd - column: SignedDate - column: StartDate - column: Company - column: Customer The table should have the title "Contracts" und the data must be loaded from the server with the following relative URL: "/CompanyService/contract/customer/{id}" Add a HTML table to the view with the following Payload columns: - column: Name - column: PayloadType - column: Description - column: Customer - column: MassKg The table should have the title "Payloads" und the data must be loaded from the server with the following relative URL: "/CustomerService/payload/customer/{id}" 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/customer/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint