Overview
Summary
Contact
Donate
Imprint
Prompt for the
ScenarioApp
Please create a React-JS application for the ScenarioModule. The application has to offer the following views for the user interface: 1. ScenarioView 2. ScenarioTypeView 3. SimulationRunView 4. StressTestView 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 ScenarioView must contain the following fields: - name: Description type: STRING - name: Name type: STRING - name: ProbabilityEstimate type: STRING - name: ScenarioType type: ScenarioType - name: SeverityLevel type: STRING The data source for the [ScenarioType] select control should be loaded from the relative URL: "/ScenarioService/scenariotype" (HTTP-GET) An existing Scenario entity should be loaded from the relative URL: "/ScenarioService/scenario/{id}" (HTTP-GET) If a new Scenario entity has been created, the new entity should be posted to the relative URL: "/ScenarioService/scenario" (HTTP-POST) If an existing Scenario entity has been updated, the modified entity should be sent to the relative URL: "/ScenarioService/scenario/{id}" (HTTP-PUT) If an existing Scenario entity has to be deleted, the following relative URL should be called: "/ScenarioService/scenario/{id}" (HTTP-DELETE) Add a HTML table to the view with the following StressTest columns: - column: AladdinSystem - column: Description - column: StressCategory - column: ResultSummary - column: Portfolio - column: Scenario - column: MaxDrawdown - column: Name The table should have the title "StressTests" und the data must be loaded from the server with the following relative URL: "/ScenarioService/stresstest/scenario/{id}" Add a HTML table to the view with the following SimulationRun columns: - column: Portfolio - column: ValueAtRisk - column: AladdinSystem - column: RunTimestamp - column: ResultSummary - column: ExpectedLoss - column: SimulationType - column: Scenario The table should have the title "SimulationRuns" und the data must be loaded from the server with the following relative URL: "/ScenarioService/simulationrun/scenario/{id}" 2. The ScenarioTypeView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing ScenarioType entity should be loaded from the relative URL: "/ScenarioService/scenariotype/{id}" (HTTP-GET) If a new ScenarioType entity has been created, the new entity should be posted to the relative URL: "/ScenarioService/scenariotype" (HTTP-POST) If an existing ScenarioType entity has been updated, the modified entity should be sent to the relative URL: "/ScenarioService/scenariotype/{id}" (HTTP-PUT) If an existing ScenarioType entity has to be deleted, the following relative URL should be called: "/ScenarioService/scenariotype/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Scenario columns: - column: ProbabilityEstimate - column: SeverityLevel - column: Description - column: ScenarioType - column: Name The table should have the title "Scenarios" und the data must be loaded from the server with the following relative URL: "/ScenarioService/scenario/scenariotype/{id}" 3. The SimulationRunView must contain the following fields: - name: AladdinSystem type: AladdinSystem - name: ExpectedLoss type: STRING - name: Portfolio type: Portfolio - name: ResultSummary type: STRING - name: RunTimestamp type: DATE - name: Scenario type: Scenario - name: SimulationType type: STRING - name: ValueAtRisk type: STRING The data source for the [Portfolio] select control should be loaded from the relative URL: "/OrganizationService/portfolio" (HTTP-GET) The data source for the [AladdinSystem] select control should be loaded from the relative URL: "/AladdinSystemService/aladdinsystem" (HTTP-GET) The data source for the [Scenario] select control should be loaded from the relative URL: "/ScenarioService/scenario" (HTTP-GET) An existing SimulationRun entity should be loaded from the relative URL: "/ScenarioService/simulationrun/{id}" (HTTP-GET) If a new SimulationRun entity has been created, the new entity should be posted to the relative URL: "/ScenarioService/simulationrun" (HTTP-POST) If an existing SimulationRun entity has been updated, the modified entity should be sent to the relative URL: "/ScenarioService/simulationrun/{id}" (HTTP-PUT) If an existing SimulationRun entity has to be deleted, the following relative URL should be called: "/ScenarioService/simulationrun/{id}" (HTTP-DELETE) 4. The StressTestView must contain the following fields: - name: AladdinSystem type: AladdinSystem - name: Description type: STRING - name: MaxDrawdown type: STRING - name: Name type: STRING - name: Portfolio type: Portfolio - name: ResultSummary type: STRING - name: Scenario type: Scenario - name: StressCategory type: STRING The data source for the [Portfolio] select control should be loaded from the relative URL: "/OrganizationService/portfolio" (HTTP-GET) The data source for the [AladdinSystem] select control should be loaded from the relative URL: "/AladdinSystemService/aladdinsystem" (HTTP-GET) The data source for the [Scenario] select control should be loaded from the relative URL: "/ScenarioService/scenario" (HTTP-GET) An existing StressTest entity should be loaded from the relative URL: "/ScenarioService/stresstest/{id}" (HTTP-GET) If a new StressTest entity has been created, the new entity should be posted to the relative URL: "/ScenarioService/stresstest" (HTTP-POST) If an existing StressTest entity has been updated, the modified entity should be sent to the relative URL: "/ScenarioService/stresstest/{id}" (HTTP-PUT) If an existing StressTest entity has to be deleted, the following relative URL should be called: "/ScenarioService/stresstest/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint