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. CrewAssignmentView 2. 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 2 views are defined below. 1. The CrewAssignmentView must contain the following fields: - name: CrewedFlight type: CrewedFlight - name: Notes type: STRING - name: Person type: Person - name: Role type: STRING The data source for the [CrewedFlight] select control should be loaded from the relative URL: "/MissionService/crewedflight" (HTTP-GET) The data source for the [Person] select control should be loaded from the relative URL: "/PersonService/person" (HTTP-GET) An existing CrewAssignment entity should be loaded from the relative URL: "/PersonService/crewassignment/{id}" (HTTP-GET) If a new CrewAssignment entity has been created, the new entity should be posted to the relative URL: "/PersonService/crewassignment" (HTTP-POST) If an existing CrewAssignment entity has been updated, the modified entity should be sent to the relative URL: "/PersonService/crewassignment/{id}" (HTTP-PUT) If an existing CrewAssignment entity has to be deleted, the following relative URL should be called: "/PersonService/crewassignment/{id}" (HTTP-DELETE) 2. The PersonView must contain the following fields: - name: Biography type: STRING - name: BirthDate type: DATE - name: FirstName type: STRING - name: FullName type: STRING - name: LastName type: STRING - name: Nationality 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 CompanyRole columns: - column: Title - column: Notes - column: Company - column: Person - column: StartDate - column: EndDate The table should have the title "CompanyRoles" und the data must be loaded from the server with the following relative URL: "/CompanyService/companyrole/person/{id}" Add a HTML table to the view with the following CrewAssignment columns: - column: Person - column: CrewedFlight - column: Role - column: Notes The table should have the title "CrewAssignments" und the data must be loaded from the server with the following relative URL: "/PersonService/crewassignment/person/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint