Overview
Summary
Contact
Donate
Imprint
Prompt for the
ControversyApp
Please create a React-JS application for the ControversyModule. The application has to offer the following views for the user interface: 1. ControversyView 2. ControversyActorView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 2 views are defined below. 1. The ControversyView must contain the following fields: - name: Company type: Company - name: Description type: STRING - name: EndDate type: DATE - name: Outcome type: STRING - name: StartDate type: DATE - name: Title type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing Controversy entity should be loaded from the relative URL: "/ControversyService/controversy/{id}" (HTTP-GET) If a new Controversy entity has been created, the new entity should be posted to the relative URL: "/ControversyService/controversy" (HTTP-POST) If an existing Controversy entity has been updated, the modified entity should be sent to the relative URL: "/ControversyService/controversy/{id}" (HTTP-PUT) If an existing Controversy entity has to be deleted, the following relative URL should be called: "/ControversyService/controversy/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ControversyActor columns: - column: Role - column: Controversy - column: ActorPerson - column: ActorCompany The table should have the title "ControversyActors" und the data must be loaded from the server with the following relative URL: "/ControversyService/controversyactor/controversy/{id}" 2. The ControversyActorView must contain the following fields: - name: ActorCompany type: Company - name: ActorPerson type: Person - name: Controversy type: Controversy - name: Role type: STRING The data source for the [ActorPerson] select control should be loaded from the relative URL: "/PersonService/person" (HTTP-GET) The data source for the [Controversy] select control should be loaded from the relative URL: "/ControversyService/controversy" (HTTP-GET) The data source for the [ActorCompany] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) An existing ControversyActor entity should be loaded from the relative URL: "/ControversyService/controversyactor/{id}" (HTTP-GET) If a new ControversyActor entity has been created, the new entity should be posted to the relative URL: "/ControversyService/controversyactor" (HTTP-POST) If an existing ControversyActor entity has been updated, the modified entity should be sent to the relative URL: "/ControversyService/controversyactor/{id}" (HTTP-PUT) If an existing ControversyActor entity has to be deleted, the following relative URL should be called: "/ControversyService/controversyactor/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint