Overview
Summary
Contact
Donate
Imprint
Prompt for the
MissionApp
Please create a React-JS application for the MissionModule. The application has to offer the following views for the user interface: 1. MissionView 2. MissionTypeView 3. WarView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The MissionView must contain the following fields: - name: Description type: STRING - name: DestinationLocation type: Location - name: EndDateTime type: DATE - name: MilitaryBranch type: MilitaryBranch - name: MissionType type: MissionType - name: OriginLocation type: Location - name: Outcome type: STRING - name: StartDateTime type: DATE - name: War type: War - name: Zeppelin type: Zeppelin The data source for the [OriginLocation] select control should be loaded from the relative URL: "/LocationService/location" (HTTP-GET) The data source for the [Zeppelin] select control should be loaded from the relative URL: "/ZeppelinService/zeppelin" (HTTP-GET) The data source for the [War] select control should be loaded from the relative URL: "/MissionService/war" (HTTP-GET) The data source for the [MissionType] select control should be loaded from the relative URL: "/MissionService/missiontype" (HTTP-GET) The data source for the [MilitaryBranch] select control should be loaded from the relative URL: "/CountryService/militarybranch" (HTTP-GET) The data source for the [DestinationLocation] select control should be loaded from the relative URL: "/LocationService/location" (HTTP-GET) An existing Mission entity should be loaded from the relative URL: "/MissionService/mission/{id}" (HTTP-GET) If a new Mission entity has been created, the new entity should be posted to the relative URL: "/MissionService/mission" (HTTP-POST) If an existing Mission entity has been updated, the modified entity should be sent to the relative URL: "/MissionService/mission/{id}" (HTTP-PUT) If an existing Mission entity has to be deleted, the following relative URL should be called: "/MissionService/mission/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Accident columns: - column: Zeppelin - column: Description - column: Fatalities - column: DateTime - column: DamageLevel - column: Location - column: Injuries - column: Mission - column: AccidentType The table should have the title "Accidents" und the data must be loaded from the server with the following relative URL: "/LocationService/accident/mission/{id}" 2. The MissionTypeView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing MissionType entity should be loaded from the relative URL: "/MissionService/missiontype/{id}" (HTTP-GET) If a new MissionType entity has been created, the new entity should be posted to the relative URL: "/MissionService/missiontype" (HTTP-POST) If an existing MissionType entity has been updated, the modified entity should be sent to the relative URL: "/MissionService/missiontype/{id}" (HTTP-PUT) If an existing MissionType entity has to be deleted, the following relative URL should be called: "/MissionService/missiontype/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Mission columns: - column: War - column: Description - column: EndDateTime - column: StartDateTime - column: MissionType - column: DestinationLocation - column: OriginLocation - column: Zeppelin - column: Outcome - column: MilitaryBranch The table should have the title "Missions" und the data must be loaded from the server with the following relative URL: "/MissionService/mission/missiontype/{id}" 3. The WarView must contain the following fields: - name: Description type: STRING - name: EndDate type: DATE - name: Name type: STRING - name: StartDate type: DATE An existing War entity should be loaded from the relative URL: "/MissionService/war/{id}" (HTTP-GET) If a new War entity has been created, the new entity should be posted to the relative URL: "/MissionService/war" (HTTP-POST) If an existing War entity has been updated, the modified entity should be sent to the relative URL: "/MissionService/war/{id}" (HTTP-PUT) If an existing War entity has to be deleted, the following relative URL should be called: "/MissionService/war/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Mission columns: - column: War - column: Description - column: EndDateTime - column: StartDateTime - column: MissionType - column: DestinationLocation - column: OriginLocation - column: Zeppelin - column: Outcome - column: MilitaryBranch The table should have the title "Missions" und the data must be loaded from the server with the following relative URL: "/MissionService/mission/war/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint