Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
LoyaltyProgramApp
Please create a React-JS application for the LoyaltyProgramModule. The application has to offer the following views for the user interface: 1. LoyaltyProgramView 2. LoyaltyTierView 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 LoyaltyProgramView must contain the following fields: - name: Airline type: Airline - name: Description type: STRING - name: Name type: STRING The data source for the [Airline] select control should be loaded from the relative URL: "/AirlineService/airline" (HTTP-GET) An existing LoyaltyProgram entity should be loaded from the relative URL: "/LoyaltyProgramService/loyaltyprogram/{id}" (HTTP-GET) If a new LoyaltyProgram entity has been created, the new entity should be posted to the relative URL: "/LoyaltyProgramService/loyaltyprogram" (HTTP-POST) If an existing LoyaltyProgram entity has been updated, the modified entity should be sent to the relative URL: "/LoyaltyProgramService/loyaltyprogram/{id}" (HTTP-PUT) If an existing LoyaltyProgram entity has to be deleted, the following relative URL should be called: "/LoyaltyProgramService/loyaltyprogram/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LoyaltyTier columns: - column: QualifyingMiles - column: Name - column: QualifyingSegments - column: LoyaltyProgram The table should have the title "LoyaltyTiers" und the data must be loaded from the server with the following relative URL: "/LoyaltyProgramService/loyaltytier/loyaltyprogram/{id}" Add a HTML table to the view with the following LoyaltyAccount columns: - column: Status - column: Passenger - column: Tier - column: LoyaltyProgram - column: AccountNumber - column: EnrollDate The table should have the title "LoyaltyAccounts" und the data must be loaded from the server with the following relative URL: "/LoyaltyAccountService/loyaltyaccount/loyaltyprogram/{id}" 2. The LoyaltyTierView must contain the following fields: - name: LoyaltyProgram type: LoyaltyProgram - name: Name type: STRING - name: QualifyingMiles type: LONG - name: QualifyingSegments type: LONG The data source for the [LoyaltyProgram] select control should be loaded from the relative URL: "/LoyaltyProgramService/loyaltyprogram" (HTTP-GET) An existing LoyaltyTier entity should be loaded from the relative URL: "/LoyaltyProgramService/loyaltytier/{id}" (HTTP-GET) If a new LoyaltyTier entity has been created, the new entity should be posted to the relative URL: "/LoyaltyProgramService/loyaltytier" (HTTP-POST) If an existing LoyaltyTier entity has been updated, the modified entity should be sent to the relative URL: "/LoyaltyProgramService/loyaltytier/{id}" (HTTP-PUT) If an existing LoyaltyTier entity has to be deleted, the following relative URL should be called: "/LoyaltyProgramService/loyaltytier/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LoyaltyAccount columns: - column: Status - column: Passenger - column: Tier - column: LoyaltyProgram - column: AccountNumber - column: EnrollDate The table should have the title "LoyaltyAccounts" und the data must be loaded from the server with the following relative URL: "/LoyaltyAccountService/loyaltyaccount/tier/{id}"
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint