Overview
Summary
Contact
Donate
Imprint
Prompt for the
CustomerApp
Please create a React-JS application for the CustomerModule. The application has to offer the following views for the user interface: 1. CustomerView 2. MissionPayloadView 3. PayloadView 4. SatelliteView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. 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}" 2. The MissionPayloadView must contain the following fields: - name: Deployed type: BOOL - name: DeploymentTime type: DATE - name: Mission type: Mission - name: Notes type: STRING - name: Payload type: Payload - name: PrimaryPayload type: BOOL The data source for the [Payload] select control should be loaded from the relative URL: "/CustomerService/payload" (HTTP-GET) The data source for the [Mission] select control should be loaded from the relative URL: "/MissionService/mission" (HTTP-GET) An existing MissionPayload entity should be loaded from the relative URL: "/CustomerService/missionpayload/{id}" (HTTP-GET) If a new MissionPayload entity has been created, the new entity should be posted to the relative URL: "/CustomerService/missionpayload" (HTTP-POST) If an existing MissionPayload entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/missionpayload/{id}" (HTTP-PUT) If an existing MissionPayload entity has to be deleted, the following relative URL should be called: "/CustomerService/missionpayload/{id}" (HTTP-DELETE) 3. The PayloadView must contain the following fields: - name: Customer type: Customer - name: Description type: STRING - name: MassKg type: STRING - name: Name type: STRING - name: PayloadType type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing Payload entity should be loaded from the relative URL: "/CustomerService/payload/{id}" (HTTP-GET) If a new Payload entity has been created, the new entity should be posted to the relative URL: "/CustomerService/payload" (HTTP-POST) If an existing Payload entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/payload/{id}" (HTTP-PUT) If an existing Payload entity has to be deleted, the following relative URL should be called: "/CustomerService/payload/{id}" (HTTP-DELETE) Add a HTML table to the view with the following MissionPayload columns: - column: Notes - column: Payload - column: PrimaryPayload - column: Deployed - column: DeploymentTime - column: Mission The table should have the title "MissionPayloads" und the data must be loaded from the server with the following relative URL: "/CustomerService/missionpayload/payload/{id}" Add a HTML table to the view with the following Satellite columns: - column: Notes - column: Purpose - column: DesignLifeYears - column: Payload - column: Operator The table should have the title "Satellites" und the data must be loaded from the server with the following relative URL: "/CustomerService/satellite/payload/{id}" 4. The SatelliteView must contain the following fields: - name: DesignLifeYears type: STRING - name: Notes type: STRING - name: Operator type: Company - name: Payload type: Payload - name: Purpose type: STRING The data source for the [Operator] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Payload] select control should be loaded from the relative URL: "/CustomerService/payload" (HTTP-GET) An existing Satellite entity should be loaded from the relative URL: "/CustomerService/satellite/{id}" (HTTP-GET) If a new Satellite entity has been created, the new entity should be posted to the relative URL: "/CustomerService/satellite" (HTTP-POST) If an existing Satellite entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/satellite/{id}" (HTTP-PUT) If an existing Satellite entity has to be deleted, the following relative URL should be called: "/CustomerService/satellite/{id}" (HTTP-DELETE) Add a HTML table to the view with the following StarlinkSatellite columns: - column: Plane - column: StarlinkNetwork - column: Notes - column: Shell - column: Slot - column: Satellite - column: Block The table should have the title "StarlinkSatellites" und the data must be loaded from the server with the following relative URL: "/StarlinkNetworkService/starlinksatellite/satellite/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint