Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
LoyaltyAccountView
Please create a React-JS view called "LoyaltyAccountView" for the fields of the LoyaltyAccount entity. The LoyaltyAccountView must contain the following fields: - name: AccountNumber type: STRING - name: EnrollDate type: DATE - name: LoyaltyProgram type: LoyaltyProgram - name: Passenger type: Passenger - name: Status type: STRING - name: Tier type: LoyaltyTier The data source for the [LoyaltyProgram] select control should be loaded from the relative URL: "/LoyaltyProgramService/loyaltyprogram" (HTTP-GET) The data source for the [Tier] select control should be loaded from the relative URL: "/LoyaltyProgramService/loyaltytier" (HTTP-GET) The data source for the [Passenger] select control should be loaded from the relative URL: "/AirlineService/passenger" (HTTP-GET) An existing LoyaltyAccount entity should be loaded from the relative URL: "/LoyaltyAccountService/loyaltyaccount/{id}" (HTTP-GET) If a new LoyaltyAccount entity has been created, the new entity should be posted to the relative URL: "/LoyaltyAccountService/loyaltyaccount" (HTTP-POST) If an existing LoyaltyAccount entity has been updated, the modified entity should be sent to the relative URL: "/LoyaltyAccountService/loyaltyaccount/{id}" (HTTP-PUT) If an existing LoyaltyAccount entity has to be deleted, the following relative URL should be called: "/LoyaltyAccountService/loyaltyaccount/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LoyaltyTransaction columns: - column: LoyaltyAccount - column: RelatedFlightInstance - column: Miles - column: TransactionType - column: TransactionDate - column: Description The table should have the title "LoyaltyTransactions" und the data must be loaded from the server with the following relative URL: "/LoyaltyAccountService/loyaltytransaction/loyaltyaccount/{id}"
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint