Overview
Summary
Contact
Donate
Imprint
Prompt for the
ProductApp
Please create a React-JS application for the ProductModule. The application has to offer the following views for the user interface: 1. ProductView 2. ProductCategoryView 3. ProductReviewView 4. SearchDirectoryEntryView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The ProductView must contain the following fields: - name: AverageRating type: DOUBLE - name: Company type: Company - name: Description type: STRING - name: Name type: STRING - name: ProductCategory type: ProductCategory - name: ReviewsCount type: INT - name: Url type: STRING The data source for the [Company] select control should be loaded from the relative URL: "/CompanyService/company" (HTTP-GET) The data source for the [ProductCategory] select control should be loaded from the relative URL: "/ProductService/productcategory" (HTTP-GET) An existing Product entity should be loaded from the relative URL: "/ProductService/product/{id}" (HTTP-GET) If a new Product entity has been created, the new entity should be posted to the relative URL: "/ProductService/product" (HTTP-POST) If an existing Product entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/product/{id}" (HTTP-PUT) If an existing Product entity has to be deleted, the following relative URL should be called: "/ProductService/product/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ProductReview columns: - column: Title - column: Body - column: Rating - column: IsVerifiedBuyer - column: Product - column: ReviewerUser - column: CreatedAt The table should have the title "ProductReviews" und the data must be loaded from the server with the following relative URL: "/ProductService/productreview/product/{id}" 2. The ProductCategoryView must contain the following fields: - name: Description type: STRING - name: Name type: STRING - name: ParentCategory type: LONG An existing ProductCategory entity should be loaded from the relative URL: "/ProductService/productcategory/{id}" (HTTP-GET) If a new ProductCategory entity has been created, the new entity should be posted to the relative URL: "/ProductService/productcategory" (HTTP-POST) If an existing ProductCategory entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/productcategory/{id}" (HTTP-PUT) If an existing ProductCategory entity has to be deleted, the following relative URL should be called: "/ProductService/productcategory/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Product columns: - column: ReviewsCount - column: Name - column: AverageRating - column: Description - column: Company - column: ProductCategory - column: Url The table should have the title "Products" und the data must be loaded from the server with the following relative URL: "/ProductService/product/productcategory/{id}" 3. The ProductReviewView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: IsVerifiedBuyer type: BOOL - name: Product type: Product - name: Rating type: INT - name: ReviewerUser type: UserAccount - name: Title type: STRING The data source for the [ReviewerUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing ProductReview entity should be loaded from the relative URL: "/ProductService/productreview/{id}" (HTTP-GET) If a new ProductReview entity has been created, the new entity should be posted to the relative URL: "/ProductService/productreview" (HTTP-POST) If an existing ProductReview entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/productreview/{id}" (HTTP-PUT) If an existing ProductReview entity has to be deleted, the following relative URL should be called: "/ProductService/productreview/{id}" (HTTP-DELETE) 4. The SearchDirectoryEntryView must contain the following fields: - name: Country type: STRING - name: DirectoryType type: STRING - name: Language type: STRING - name: ResourceType type: STRING - name: Title type: STRING - name: Url type: STRING An existing SearchDirectoryEntry entity should be loaded from the relative URL: "/ProductService/searchdirectoryentry/{id}" (HTTP-GET) If a new SearchDirectoryEntry entity has been created, the new entity should be posted to the relative URL: "/ProductService/searchdirectoryentry" (HTTP-POST) If an existing SearchDirectoryEntry entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/searchdirectoryentry/{id}" (HTTP-PUT) If an existing SearchDirectoryEntry entity has to be deleted, the following relative URL should be called: "/ProductService/searchdirectoryentry/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint