Overview
Summary
Contact
Donate
Imprint
Prompt for the
CountryApp
Please create a React-JS application for the CountryModule. The application has to offer the following views for the user interface: 1. CountryView 2. MilitaryBranchView 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 CountryView must contain the following fields: - name: IsoCode type: STRING - name: Name type: STRING An existing Country entity should be loaded from the relative URL: "/CountryService/country/{id}" (HTTP-GET) If a new Country entity has been created, the new entity should be posted to the relative URL: "/CountryService/country" (HTTP-POST) If an existing Country entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/country/{id}" (HTTP-PUT) If an existing Country entity has to be deleted, the following relative URL should be called: "/CountryService/country/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Location columns: - column: LocationType - column: Region - column: Latitude - column: Name - column: Longitude - column: Country The table should have the title "Locations" und the data must be loaded from the server with the following relative URL: "/LocationService/location/country/{id}" Add a HTML table to the view with the following Customer columns: - column: City - column: Phone - column: AddressLine2 - column: Country - column: LastName - column: FirstName - column: PostalCode - column: Email - column: AddressLine1 The table should have the title "Customers" und the data must be loaded from the server with the following relative URL: "/CustomerService/customer/country/{id}" Add a HTML table to the view with the following MilitaryBranch columns: - column: Country - column: Name - column: BranchType The table should have the title "MilitaryBranchs" und the data must be loaded from the server with the following relative URL: "/CountryService/militarybranch/country/{id}" 2. The MilitaryBranchView must contain the following fields: - name: BranchType type: STRING - name: Country type: Country - name: Name type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) An existing MilitaryBranch entity should be loaded from the relative URL: "/CountryService/militarybranch/{id}" (HTTP-GET) If a new MilitaryBranch entity has been created, the new entity should be posted to the relative URL: "/CountryService/militarybranch" (HTTP-POST) If an existing MilitaryBranch entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/militarybranch/{id}" (HTTP-PUT) If an existing MilitaryBranch entity has to be deleted, the following relative URL should be called: "/CountryService/militarybranch/{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/militarybranch/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint