Overview
Summary
Contact
Donate
Imprint
Prompt for the
ScenarioView
Please create a React-JS view called "ScenarioView" for the fields of the Scenario entity. 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}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint