Overview
Summary
Contact
Donate
Imprint
Prompt for the
OfferApp
Please create a React-JS application for the OfferModule. The application has to offer the following views for the user interface: 1. InventoryItemView 2. OfferView 3. PriceHistoryView 4. ShoppingCartView 5. ShoppingCartItemView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 views are defined below. 1. The InventoryItemView must contain the following fields: - name: FulfillmentCenter type: FulfillmentCenter - name: Offer type: Offer - name: QuantityOnHand type: LONG - name: QuantityReserved type: LONG - name: UpdatedAt type: DATE The data source for the [FulfillmentCenter] select control should be loaded from the relative URL: "/FulfillmentCenterService/fulfillmentcenter" (HTTP-GET) The data source for the [Offer] select control should be loaded from the relative URL: "/OfferService/offer" (HTTP-GET) An existing InventoryItem entity should be loaded from the relative URL: "/OfferService/inventoryitem/{id}" (HTTP-GET) If a new InventoryItem entity has been created, the new entity should be posted to the relative URL: "/OfferService/inventoryitem" (HTTP-POST) If an existing InventoryItem entity has been updated, the modified entity should be sent to the relative URL: "/OfferService/inventoryitem/{id}" (HTTP-PUT) If an existing InventoryItem entity has to be deleted, the following relative URL should be called: "/OfferService/inventoryitem/{id}" (HTTP-DELETE) 2. The OfferView must contain the following fields: - name: Condition type: STRING - name: CreatedAt type: DATE - name: Currency type: STRING - name: IsActive type: BOOL - name: IsPrimeEligible type: BOOL - name: Price type: DOUBLE - name: Product type: Product - name: Seller type: Seller - name: SkuSeller type: STRING - name: UpdatedAt type: DATE The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) The data source for the [Seller] select control should be loaded from the relative URL: "/ProductService/seller" (HTTP-GET) An existing Offer entity should be loaded from the relative URL: "/OfferService/offer/{id}" (HTTP-GET) If a new Offer entity has been created, the new entity should be posted to the relative URL: "/OfferService/offer" (HTTP-POST) If an existing Offer entity has been updated, the modified entity should be sent to the relative URL: "/OfferService/offer/{id}" (HTTP-PUT) If an existing Offer entity has to be deleted, the following relative URL should be called: "/OfferService/offer/{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/offer/{id}" Add a HTML table to the view with the following InventoryItem columns: - column: QuantityOnHand - column: Offer - column: UpdatedAt - column: QuantityReserved - column: FulfillmentCenter The table should have the title "InventoryItems" und the data must be loaded from the server with the following relative URL: "/OfferService/inventoryitem/offer/{id}" Add a HTML table to the view with the following PriceHistory columns: - column: Currency - column: Price - column: ValidTo - column: Offer - column: ValidFrom The table should have the title "PriceHistorys" und the data must be loaded from the server with the following relative URL: "/OfferService/pricehistory/offer/{id}" Add a HTML table to the view with the following OrderItem columns: - column: Offer - column: LineTotal - column: UnitPrice - column: Quantity - column: DiscountAmount - column: ProductTitle - column: CustomerOrder - column: TaxAmount The table should have the title "OrderItems" und the data must be loaded from the server with the following relative URL: "/ReturnRequestService/orderitem/offer/{id}" Add a HTML table to the view with the following BrowseEvent columns: - column: OccurredAt - column: UserAgent - column: SessionId - column: EventType - column: IpAddress - column: Product - column: Customer - column: Offer The table should have the title "BrowseEvents" und the data must be loaded from the server with the following relative URL: "/ProductService/browseevent/offer/{id}" 3. The PriceHistoryView must contain the following fields: - name: Currency type: STRING - name: Offer type: Offer - name: Price type: DOUBLE - name: ValidFrom type: DATE - name: ValidTo type: DATE The data source for the [Offer] select control should be loaded from the relative URL: "/OfferService/offer" (HTTP-GET) An existing PriceHistory entity should be loaded from the relative URL: "/OfferService/pricehistory/{id}" (HTTP-GET) If a new PriceHistory entity has been created, the new entity should be posted to the relative URL: "/OfferService/pricehistory" (HTTP-POST) If an existing PriceHistory entity has been updated, the modified entity should be sent to the relative URL: "/OfferService/pricehistory/{id}" (HTTP-PUT) If an existing PriceHistory entity has to be deleted, the following relative URL should be called: "/OfferService/pricehistory/{id}" (HTTP-DELETE) 4. 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}" 5. The ShoppingCartItemView must contain the following fields: - name: AddedAt type: DATE - name: Offer type: Offer - name: Quantity type: LONG - name: ShoppingCart type: ShoppingCart The data source for the [ShoppingCart] select control should be loaded from the relative URL: "/OfferService/shoppingcart" (HTTP-GET) The data source for the [Offer] select control should be loaded from the relative URL: "/OfferService/offer" (HTTP-GET) An existing ShoppingCartItem entity should be loaded from the relative URL: "/OfferService/shoppingcartitem/{id}" (HTTP-GET) If a new ShoppingCartItem entity has been created, the new entity should be posted to the relative URL: "/OfferService/shoppingcartitem" (HTTP-POST) If an existing ShoppingCartItem entity has been updated, the modified entity should be sent to the relative URL: "/OfferService/shoppingcartitem/{id}" (HTTP-PUT) If an existing ShoppingCartItem entity has to be deleted, the following relative URL should be called: "/OfferService/shoppingcartitem/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint