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. CrewedProgramView 3. RunwayView 4. SpaceportCategoryView 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 CountryView must contain the following fields: - name: IsoCode type: STRING - name: Name type: STRING - name: Notes 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 SpaceAgency columns: - column: Notes - column: Name - column: Country - column: FoundedYear - column: Type The table should have the title "SpaceAgencys" und the data must be loaded from the server with the following relative URL: "/SpaceAgencyService/spaceagency/country/{id}" Add a HTML table to the view with the following Region columns: - column: Name - column: Country - column: Type The table should have the title "Regions" und the data must be loaded from the server with the following relative URL: "/SpaceportService/region/country/{id}" Add a HTML table to the view with the following Spaceport columns: - column: Status - column: Latitude - column: Name - column: Country - column: Region - column: IsSuborbitalOnly - column: IsAirportBased - column: IsSeaPlatform - column: Notes - column: Longitude - column: FirstOrbitalLaunchDate - column: FirstSuborbitalLaunchDate The table should have the title "Spaceports" und the data must be loaded from the server with the following relative URL: "/SpaceportService/spaceport/country/{id}" Add a HTML table to the view with the following CrewedProgram columns: - column: Country - column: SpaceAgency - column: StartYear - column: EndYear - column: Notes - column: Name The table should have the title "CrewedPrograms" und the data must be loaded from the server with the following relative URL: "/CountryService/crewedprogram/country/{id}" Add a HTML table to the view with the following Operator columns: - column: Name - column: Country - column: Description - column: Type The table should have the title "Operators" und the data must be loaded from the server with the following relative URL: "/OperatorService/operator/country/{id}" Add a HTML table to the view with the following LaunchVehicle columns: - column: IsCrewedCapable - column: Type - column: Notes - column: Country - column: Operator - column: Name The table should have the title "LaunchVehicles" und the data must be loaded from the server with the following relative URL: "/LaunchVehicleService/launchvehicle/country/{id}" 2. The CrewedProgramView must contain the following fields: - name: Country type: Country - name: EndYear type: INT - name: Name type: STRING - name: Notes type: STRING - name: SpaceAgency type: SpaceAgency - name: StartYear type: INT The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [SpaceAgency] select control should be loaded from the relative URL: "/SpaceAgencyService/spaceagency" (HTTP-GET) An existing CrewedProgram entity should be loaded from the relative URL: "/CountryService/crewedprogram/{id}" (HTTP-GET) If a new CrewedProgram entity has been created, the new entity should be posted to the relative URL: "/CountryService/crewedprogram" (HTTP-POST) If an existing CrewedProgram entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/crewedprogram/{id}" (HTTP-PUT) If an existing CrewedProgram entity has to be deleted, the following relative URL should be called: "/CountryService/crewedprogram/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CrewedMission columns: - column: CrewedProgram - column: Destination - column: Notes - column: Launch - column: SpacecraftName The table should have the title "CrewedMissions" und the data must be loaded from the server with the following relative URL: "/OperatorService/crewedmission/crewedprogram/{id}" 3. The RunwayView must contain the following fields: - name: LengthMeters type: INT - name: Name type: STRING - name: Notes type: STRING - name: Spaceport type: Spaceport - name: SurfaceType type: STRING The data source for the [Spaceport] select control should be loaded from the relative URL: "/SpaceportService/spaceport" (HTTP-GET) An existing Runway entity should be loaded from the relative URL: "/CountryService/runway/{id}" (HTTP-GET) If a new Runway entity has been created, the new entity should be posted to the relative URL: "/CountryService/runway" (HTTP-POST) If an existing Runway entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/runway/{id}" (HTTP-PUT) If an existing Runway entity has to be deleted, the following relative URL should be called: "/CountryService/runway/{id}" (HTTP-DELETE) 4. The SpaceportCategoryView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing SpaceportCategory entity should be loaded from the relative URL: "/CountryService/spaceportcategory/{id}" (HTTP-GET) If a new SpaceportCategory entity has been created, the new entity should be posted to the relative URL: "/CountryService/spaceportcategory" (HTTP-POST) If an existing SpaceportCategory entity has been updated, the modified entity should be sent to the relative URL: "/CountryService/spaceportcategory/{id}" (HTTP-PUT) If an existing SpaceportCategory entity has to be deleted, the following relative URL should be called: "/CountryService/spaceportcategory/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SpaceportCategoryAssignment columns: - column: ToDate - column: FromDate - column: SpaceportCategory - column: Notes - column: Spaceport The table should have the title "SpaceportCategoryAssignments" und the data must be loaded from the server with the following relative URL: "/SpaceportService/spaceportcategoryassignment/spaceportcategory/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint