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