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. RemoteAssistanceOperationView 3. ServiceAreaView 4. ServiceExpansionPlanView 5. StateProvinceView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 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 ServiceArea columns: - column: Status - column: LaunchDate - column: Notes - column: StateProvince - column: City - column: IsAirport - column: MetroAreaName - column: Country The table should have the title "ServiceAreas" und the data must be loaded from the server with the following relative URL: "/CountryService/servicearea/country/{id}" Add a HTML table to the view with the following StateProvince columns: - column: Name - column: Abbreviation - column: Country The table should have the title "StateProvinces" und the data must be loaded from the server with the following relative URL: "/CountryService/stateprovince/country/{id}" Add a HTML table to the view with the following RemoteAssistanceOperation columns: - column: Company - column: EndDate - column: Description - column: StartDate - column: Country The table should have the title "RemoteAssistanceOperations" und the data must be loaded from the server with the following relative URL: "/CountryService/remoteassistanceoperation/country/{id}" Add a HTML table to the view with the following ServiceExpansionPlan columns: - column: Status - column: TargetCountry - column: TargetYear - column: TargetCity - column: Notes - column: Program The table should have the title "ServiceExpansionPlans" und the data must be loaded from the server with the following relative URL: "/CountryService/serviceexpansionplan/targetcountry/{id}" 2. The RemoteAssistanceOperationView must contain the following fields: - name: Company type: Company - name: Country type: Country - name: Description type: STRING - name: EndDate type: DATE - name: StartDate type: DATE The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) An existing RemoteAssistanceOperation entity should be loaded from the relative URL: "/CountryService/remoteassistanceoperation/{id}" (HTTP-GET) If a new RemoteAssistanceOperation entity has been created, the new entity should be posted to the relative URL: "/CountryService/remoteassistanceoperation" (HTTP-POST) If an existing RemoteAssistanceOperation entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/remoteassistanceoperation/{id}" (HTTP-PUT) If an existing RemoteAssistanceOperation entity has to be deleted, the following relative URL should be called: "/CountryService/remoteassistanceoperation/{id}" (HTTP-DELETE) 3. The ServiceAreaView must contain the following fields: - name: City type: City - name: Country type: Country - name: IsAirport type: BOOL - name: LaunchDate type: DATE - name: MetroAreaName type: STRING - name: Notes type: STRING - name: StateProvince type: StateProvince - name: Status type: STRING The data source for the [StateProvince] select control should be loaded from the relative URL: "/CountryService/stateprovince" (HTTP-GET) The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/CityService/city" (HTTP-GET) An existing ServiceArea entity should be loaded from the relative URL: "/CountryService/servicearea/{id}" (HTTP-GET) If a new ServiceArea entity has been created, the new entity should be posted to the relative URL: "/CountryService/servicearea" (HTTP-POST) If an existing ServiceArea entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/servicearea/{id}" (HTTP-PUT) If an existing ServiceArea entity has to be deleted, the following relative URL should be called: "/CountryService/servicearea/{id}" (HTTP-DELETE) Add a HTML table to the view with the following RobotaxiService columns: - column: WithPartner - column: IsCommercial - column: AccessMethod - column: PartnerCompany - column: WaitlistStatus - column: ServiceArea - column: Program The table should have the title "RobotaxiServices" und the data must be loaded from the server with the following relative URL: "/CompanyService/robotaxiservice/servicearea/{id}" Add a HTML table to the view with the following Accident columns: - column: FatalityCount - column: AccidentDate - column: Program - column: InjuryCount - column: PropertyDamageFlag - column: Company - column: Description - column: ServiceArea - column: SourceAgency - column: Severity The table should have the title "Accidents" und the data must be loaded from the server with the following relative URL: "/AccidentService/accident/servicearea/{id}" 4. The ServiceExpansionPlanView must contain the following fields: - name: Notes type: STRING - name: Program type: Program - name: Status type: STRING - name: TargetCity type: City - name: TargetCountry type: Country - name: TargetYear type: INT The data source for the [Program] select control should be loaded from the relative URL: "/ProgramService/program" (HTTP-GET) The data source for the [TargetCity] select control should be loaded from the relative URL: "/CityService/city" (HTTP-GET) The data source for the [TargetCountry] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) An existing ServiceExpansionPlan entity should be loaded from the relative URL: "/CountryService/serviceexpansionplan/{id}" (HTTP-GET) If a new ServiceExpansionPlan entity has been created, the new entity should be posted to the relative URL: "/CountryService/serviceexpansionplan" (HTTP-POST) If an existing ServiceExpansionPlan entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/serviceexpansionplan/{id}" (HTTP-PUT) If an existing ServiceExpansionPlan entity has to be deleted, the following relative URL should be called: "/CountryService/serviceexpansionplan/{id}" (HTTP-DELETE) 5. The StateProvinceView must contain the following fields: - name: Abbreviation 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 StateProvince entity should be loaded from the relative URL: "/CountryService/stateprovince/{id}" (HTTP-GET) If a new StateProvince entity has been created, the new entity should be posted to the relative URL: "/CountryService/stateprovince" (HTTP-POST) If an existing StateProvince entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/stateprovince/{id}" (HTTP-PUT) If an existing StateProvince entity has to be deleted, the following relative URL should be called: "/CountryService/stateprovince/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ServiceArea columns: - column: Status - column: LaunchDate - column: Notes - column: StateProvince - column: City - column: IsAirport - column: MetroAreaName - column: Country The table should have the title "ServiceAreas" und the data must be loaded from the server with the following relative URL: "/CountryService/servicearea/stateprovince/{id}" Add a HTML table to the view with the following City columns: - column: Name - column: StateProvince The table should have the title "Citys" und the data must be loaded from the server with the following relative URL: "/CityService/city/stateprovince/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint