Overview
Summary
Contact
Donate
Imprint
Prompt for the
WishlistApp
Please create a React-JS application for the WishlistModule. The application has to offer the following views for the user interface: 1. ProductImageView 2. WishlistView 3. WishlistItemView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 3 views are defined below. 1. The ProductImageView must contain the following fields: - name: AltText type: STRING - name: CreatedAt type: DATE - name: IsMain type: BOOL - name: Product type: Product - name: SortOrder type: LONG - name: Url type: STRING The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing ProductImage entity should be loaded from the relative URL: "/WishlistService/productimage/{id}" (HTTP-GET) If a new ProductImage entity has been created, the new entity should be posted to the relative URL: "/WishlistService/productimage" (HTTP-POST) If an existing ProductImage entity has been updated, the modified entity should be sent to the relative URL: "/WishlistService/productimage/{id}" (HTTP-PUT) If an existing ProductImage entity has to be deleted, the following relative URL should be called: "/WishlistService/productimage/{id}" (HTTP-DELETE) 2. The WishlistView must contain the following fields: - name: CreatedAt type: DATE - name: Customer type: Customer - name: IsPublic type: BOOL - name: Name type: STRING - 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 Wishlist entity should be loaded from the relative URL: "/WishlistService/wishlist/{id}" (HTTP-GET) If a new Wishlist entity has been created, the new entity should be posted to the relative URL: "/WishlistService/wishlist" (HTTP-POST) If an existing Wishlist entity has been updated, the modified entity should be sent to the relative URL: "/WishlistService/wishlist/{id}" (HTTP-PUT) If an existing Wishlist entity has to be deleted, the following relative URL should be called: "/WishlistService/wishlist/{id}" (HTTP-DELETE) Add a HTML table to the view with the following WishlistItem columns: - column: AddedAt - column: Wishlist - column: Product The table should have the title "WishlistItems" und the data must be loaded from the server with the following relative URL: "/WishlistService/wishlistitem/wishlist/{id}" 3. The WishlistItemView must contain the following fields: - name: AddedAt type: DATE - name: Product type: Product - name: Wishlist type: Wishlist The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) The data source for the [Wishlist] select control should be loaded from the relative URL: "/WishlistService/wishlist" (HTTP-GET) An existing WishlistItem entity should be loaded from the relative URL: "/WishlistService/wishlistitem/{id}" (HTTP-GET) If a new WishlistItem entity has been created, the new entity should be posted to the relative URL: "/WishlistService/wishlistitem" (HTTP-POST) If an existing WishlistItem entity has been updated, the modified entity should be sent to the relative URL: "/WishlistService/wishlistitem/{id}" (HTTP-PUT) If an existing WishlistItem entity has to be deleted, the following relative URL should be called: "/WishlistService/wishlistitem/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint