Overview
Summary
Contact
Donate
Imprint
Prompt for the
FacilityApp
Please create a React-JS application for the FacilityModule. The application has to offer the following views for the user interface: 1. FacilityView 2. IncidentView 3. LaunchSiteView 4. StarlinkUserTerminalView 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 FacilityView must contain the following fields: - name: City type: STRING - name: Company type: Company - name: Country type: STRING - name: FacilityType type: STRING - name: Latitude type: STRING - name: Longitude type: STRING - name: Name type: STRING - name: Notes type: STRING - name: Region type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing Facility entity should be loaded from the relative URL: "/FacilityService/facility/{id}" (HTTP-GET) If a new Facility entity has been created, the new entity should be posted to the relative URL: "/FacilityService/facility" (HTTP-POST) If an existing Facility entity has been updated, the modified entity should be sent to the relative URL: "/FacilityService/facility/{id}" (HTTP-PUT) If an existing Facility entity has to be deleted, the following relative URL should be called: "/FacilityService/facility/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TestSite columns: - column: Description - column: Facility The table should have the title "TestSites" und the data must be loaded from the server with the following relative URL: "/LaunchVehicleService/testsite/facility/{id}" Add a HTML table to the view with the following LandingSite columns: - column: Facility - column: Description - column: LandingType - column: Name The table should have the title "LandingSites" und the data must be loaded from the server with the following relative URL: "/MissionService/landingsite/facility/{id}" Add a HTML table to the view with the following StarlinkUserTerminal columns: - column: StarlinkNetwork - column: Notes - column: ProductionFacility - column: HardwareVersion - column: ModelName The table should have the title "StarlinkUserTerminals" und the data must be loaded from the server with the following relative URL: "/FacilityService/starlinkuserterminal/productionfacility/{id}" Add a HTML table to the view with the following Incident columns: - column: IncidentDateTime - column: LaunchVehicle - column: Description - column: Facility - column: RocketStage - column: Notes - column: RootCause - column: Spacecraft - column: Severity - column: Mission The table should have the title "Incidents" und the data must be loaded from the server with the following relative URL: "/FacilityService/incident/facility/{id}" Add a HTML table to the view with the following LaunchSite columns: - column: Facility - column: Description - column: Code The table should have the title "LaunchSites" und the data must be loaded from the server with the following relative URL: "/FacilityService/launchsite/facility/{id}" 2. The IncidentView must contain the following fields: - name: Description type: STRING - name: Facility type: Facility - name: IncidentDateTime type: DATE - name: LaunchVehicle type: LaunchVehicle - name: Mission type: Mission - name: Notes type: STRING - name: RocketStage type: RocketStage - name: RootCause type: STRING - name: Severity type: STRING - name: Spacecraft type: Spacecraft The data source for the [RocketStage] select control should be loaded from the relative URL: "/LaunchVehicleService/rocketstage" (HTTP-GET) The data source for the [Spacecraft] select control should be loaded from the relative URL: "/MissionService/spacecraft" (HTTP-GET) The data source for the [Facility] select control should be loaded from the relative URL: "/FacilityService/facility" (HTTP-GET) The data source for the [Mission] select control should be loaded from the relative URL: "/MissionService/mission" (HTTP-GET) The data source for the [LaunchVehicle] select control should be loaded from the relative URL: "/LaunchVehicleService/launchvehicle" (HTTP-GET) An existing Incident entity should be loaded from the relative URL: "/FacilityService/incident/{id}" (HTTP-GET) If a new Incident entity has been created, the new entity should be posted to the relative URL: "/FacilityService/incident" (HTTP-POST) If an existing Incident entity has been updated, the modified entity should be sent to the relative URL: "/FacilityService/incident/{id}" (HTTP-PUT) If an existing Incident entity has to be deleted, the following relative URL should be called: "/FacilityService/incident/{id}" (HTTP-DELETE) 3. The LaunchSiteView must contain the following fields: - name: Code type: STRING - name: Description type: STRING - name: Facility type: Facility The data source for the [Facility] select control should be loaded from the relative URL: "/FacilityService/facility" (HTTP-GET) An existing LaunchSite entity should be loaded from the relative URL: "/FacilityService/launchsite/{id}" (HTTP-GET) If a new LaunchSite entity has been created, the new entity should be posted to the relative URL: "/FacilityService/launchsite" (HTTP-POST) If an existing LaunchSite entity has been updated, the modified entity should be sent to the relative URL: "/FacilityService/launchsite/{id}" (HTTP-PUT) If an existing LaunchSite entity has to be deleted, the following relative URL should be called: "/FacilityService/launchsite/{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/launchsite/{id}" 4. The StarlinkUserTerminalView must contain the following fields: - name: HardwareVersion type: STRING - name: ModelName type: STRING - name: Notes type: STRING - name: ProductionFacility type: Facility - name: StarlinkNetwork type: StarlinkNetwork The data source for the [ProductionFacility] select control should be loaded from the relative URL: "/FacilityService/facility" (HTTP-GET) The data source for the [StarlinkNetwork] select control should be loaded from the relative URL: "/StarlinkNetworkService/starlinknetwork" (HTTP-GET) An existing StarlinkUserTerminal entity should be loaded from the relative URL: "/FacilityService/starlinkuserterminal/{id}" (HTTP-GET) If a new StarlinkUserTerminal entity has been created, the new entity should be posted to the relative URL: "/FacilityService/starlinkuserterminal" (HTTP-POST) If an existing StarlinkUserTerminal entity has been updated, the modified entity should be sent to the relative URL: "/FacilityService/starlinkuserterminal/{id}" (HTTP-PUT) If an existing StarlinkUserTerminal entity has to be deleted, the following relative URL should be called: "/FacilityService/starlinkuserterminal/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint