Overview
Summary
Contact
Donate
Imprint
Prompt for the
OfferView
Please create a React-JS view called "OfferView" for the fields of the Offer entity. 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}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint