Overview
Summary
Contact
Donate
Imprint
Prompt for the
LoyaltyCardView
Please create a React-JS view called "LoyaltyCardView" for the fields of the LoyaltyCard entity. The LoyaltyCardView must contain the following fields: - name: CreatedAt type: DATE - name: CurrentStampCount type: LONG - name: Customer type: Customer - name: IsCompleted type: BOOL - name: LastUpdatedAt type: DATE - name: LoyaltyProgram type: LoyaltyProgram The data source for the [LoyaltyProgram] select control should be loaded from the relative URL: "/CustomerService/loyaltyprogram" (HTTP-GET) The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing LoyaltyCard entity should be loaded from the relative URL: "/CustomerService/loyaltycard/{id}" (HTTP-GET) If a new LoyaltyCard entity has been created, the new entity should be posted to the relative URL: "/CustomerService/loyaltycard" (HTTP-POST) If an existing LoyaltyCard entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/loyaltycard/{id}" (HTTP-PUT) If an existing LoyaltyCard entity has to be deleted, the following relative URL should be called: "/CustomerService/loyaltycard/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LoyaltyStamp columns: - column: OrderAmount - column: StampDateTime - column: LoyaltyCard - column: Notes - column: CustomerOrder The table should have the title "LoyaltyStamps" und the data must be loaded from the server with the following relative URL: "/CustomerService/loyaltystamp/loyaltycard/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint