Overview
Summary
Contact
Donate
Imprint
Prompt for the
ShoppingCartView
Please create a React-JS view called "ShoppingCartView" for the fields of the ShoppingCart entity. The ShoppingCartView must contain the following fields: - name: CreatedAt type: DATE - name: Customer type: Customer - name: UpdatedAt type: DATE The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) An existing ShoppingCart entity should be loaded from the relative URL: "/OfferService/shoppingcart/{id}" (HTTP-GET) If a new ShoppingCart entity has been created, the new entity should be posted to the relative URL: "/OfferService/shoppingcart" (HTTP-POST) If an existing ShoppingCart entity has been updated, the modified entity should be sent to the relative URL: "/OfferService/shoppingcart/{id}" (HTTP-PUT) If an existing ShoppingCart entity has to be deleted, the following relative URL should be called: "/OfferService/shoppingcart/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ShoppingCartItem columns: - column: Offer - column: AddedAt - column: ShoppingCart - column: Quantity The table should have the title "ShoppingCartItems" und the data must be loaded from the server with the following relative URL: "/OfferService/shoppingcartitem/shoppingcart/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint