Overview
Summary
Contact
Donate
Imprint
Prompt for the
CustomerView
Please create a React-JS view called "CustomerView" for the fields of the Customer entity. The CustomerView must contain the following fields: - name: CreatedAt type: DATE - name: Email type: STRING - name: FirstName type: STRING - name: IsBlocked type: BOOL - name: LastName type: STRING - name: PhoneNumber type: STRING An existing Customer entity should be loaded from the relative URL: "/CustomerService/customer/{id}" (HTTP-GET) If a new Customer entity has been created, the new entity should be posted to the relative URL: "/CustomerService/customer" (HTTP-POST) If an existing Customer entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/customer/{id}" (HTTP-PUT) If an existing Customer entity has to be deleted, the following relative URL should be called: "/CustomerService/customer/{id}" (HTTP-DELETE) Add a HTML table to the view with the following CustomerOrder columns: - column: Notes - column: DeliveryAddress - column: Customer - column: PaymentFee - column: OrderNumber - column: OrderType - column: PaymentMethod - column: TotalAmount - column: Restaurant - column: LoyaltyCard - column: DeliveryFee - column: OrderDateTime - column: SubtotalAmount - column: ScheduledDateTime - column: DiscountAmount - column: Status The table should have the title "CustomerOrders" und the data must be loaded from the server with the following relative URL: "/PaymentMethodService/customerorder/customer/{id}" Add a HTML table to the view with the following CustomerAddress columns: - column: IsDefault - column: Customer - column: Street - column: AddressExtra - column: Label - column: PostalCode - column: HouseNumber - column: Longitude - column: City - column: Latitude The table should have the title "CustomerAddresss" und the data must be loaded from the server with the following relative URL: "/CustomerService/customeraddress/customer/{id}" 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/customer/{id}" Add a HTML table to the view with the following Rating columns: - column: CreatedAt - column: Restaurant - column: Comment - column: Customer - column: CustomerOrder - column: IsVerified - column: RatingValue The table should have the title "Ratings" und the data must be loaded from the server with the following relative URL: "/RestaurantTagService/rating/customer/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint