Overview
Summary
Contact
Donate
Imprint
Prompt for the
CustomerAddressView
Please create a React-JS view called "CustomerAddressView" for the fields of the CustomerAddress entity. The CustomerAddressView must contain the following fields: - name: AddressExtra type: STRING - name: City type: City - name: Customer type: Customer - name: HouseNumber type: STRING - name: IsDefault type: BOOL - name: Label type: STRING - name: Latitude type: STRING - name: Longitude type: STRING - name: PostalCode type: STRING - name: Street type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/RestaurantService/city" (HTTP-GET) An existing CustomerAddress entity should be loaded from the relative URL: "/CustomerService/customeraddress/{id}" (HTTP-GET) If a new CustomerAddress entity has been created, the new entity should be posted to the relative URL: "/CustomerService/customeraddress" (HTTP-POST) If an existing CustomerAddress entity has been updated, the modified entity should be sent to the relative URL: "/CustomerService/customeraddress/{id}" (HTTP-PUT) If an existing CustomerAddress entity has to be deleted, the following relative URL should be called: "/CustomerService/customeraddress/{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/deliveryaddress/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint