Overview
Summary
Contact
Donate
Imprint
Prompt for the
PersonApp
Please create a React-JS application for the PersonModule. The application has to offer the following views for the user interface: 1. CompanyRoleView 2. LawsuitView 3. LawsuitPartyView 4. PersonView 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 CompanyRoleView must contain the following fields: - name: Company type: Company - name: EndDate type: DATE - name: Person type: Person - name: RoleType 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) The data source for the [Person] select control should be loaded from the relative URL: "/PersonService/person" (HTTP-GET) An existing CompanyRole entity should be loaded from the relative URL: "/PersonService/companyrole/{id}" (HTTP-GET) If a new CompanyRole entity has been created, the new entity should be posted to the relative URL: "/PersonService/companyrole" (HTTP-POST) If an existing CompanyRole entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/companyrole/{id}" (HTTP-PUT) If an existing CompanyRole entity has to be deleted, the following relative URL should be called: "/PersonService/companyrole/{id}" (HTTP-DELETE) 2. The LawsuitView must contain the following fields: - name: AmountUsdMillions type: STRING - name: Company type: Company - name: Court type: STRING - name: FilingDate type: DATE - name: SettlementDate type: DATE - name: Status type: STRING - name: Summary type: STRING - 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 Lawsuit entity should be loaded from the relative URL: "/PersonService/lawsuit/{id}" (HTTP-GET) If a new Lawsuit entity has been created, the new entity should be posted to the relative URL: "/PersonService/lawsuit" (HTTP-POST) If an existing Lawsuit entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/lawsuit/{id}" (HTTP-PUT) If an existing Lawsuit entity has to be deleted, the following relative URL should be called: "/PersonService/lawsuit/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LawsuitParty columns: - column: PartyCompany - column: PartyPerson - column: Lawsuit - column: Role The table should have the title "LawsuitPartys" und the data must be loaded from the server with the following relative URL: "/PersonService/lawsuitparty/lawsuit/{id}" 3. The LawsuitPartyView must contain the following fields: - name: Lawsuit type: Lawsuit - name: PartyCompany type: Company - name: PartyPerson type: Person - name: Role type: STRING The data source for the [PartyPerson] select control should be loaded from the relative URL: "/PersonService/person" (HTTP-GET) The data source for the [PartyCompany] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Lawsuit] select control should be loaded from the relative URL: "/PersonService/lawsuit" (HTTP-GET) An existing LawsuitParty entity should be loaded from the relative URL: "/PersonService/lawsuitparty/{id}" (HTTP-GET) If a new LawsuitParty entity has been created, the new entity should be posted to the relative URL: "/PersonService/lawsuitparty" (HTTP-POST) If an existing LawsuitParty entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/lawsuitparty/{id}" (HTTP-PUT) If an existing LawsuitParty entity has to be deleted, the following relative URL should be called: "/PersonService/lawsuitparty/{id}" (HTTP-DELETE) 4. The PersonView must contain the following fields: - name: Biography type: STRING - name: BirthYear type: LONG - name: FirstName type: STRING - name: FullName type: STRING - name: LastName type: STRING An existing Person entity should be loaded from the relative URL: "/PersonService/person/{id}" (HTTP-GET) If a new Person entity has been created, the new entity should be posted to the relative URL: "/PersonService/person" (HTTP-POST) If an existing Person entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/person/{id}" (HTTP-PUT) If an existing Person entity has to be deleted, the following relative URL should be called: "/PersonService/person/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ProgramParticipation columns: - column: EndDate - column: StartDate - column: ParticipantCompany - column: ParticipantPerson - column: Program - column: Role - column: Outcome The table should have the title "ProgramParticipations" und the data must be loaded from the server with the following relative URL: "/CompanyService/programparticipation/participantperson/{id}" 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/actorperson/{id}" Add a HTML table to the view with the following CompanyRole columns: - column: StartDate - column: Title - column: RoleType - column: Company - column: EndDate - column: Person The table should have the title "CompanyRoles" und the data must be loaded from the server with the following relative URL: "/PersonService/companyrole/person/{id}" Add a HTML table to the view with the following LawsuitParty columns: - column: PartyCompany - column: PartyPerson - column: Lawsuit - column: Role The table should have the title "LawsuitPartys" und the data must be loaded from the server with the following relative URL: "/PersonService/lawsuitparty/partyperson/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint