Overview
Summary
Contact
Donate
Imprint
Prompt for the
CategoryApp
Please create a React-JS application for the CategoryModule. The application has to offer the following views for the user interface: 1. CategoryView 2. ProductAttributeView 3. ProductCategoryView 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 CategoryView must contain the following fields: - name: CreatedAt type: DATE - name: Name type: STRING - name: Parent type: LONG - name: Slug type: STRING - name: SortOrder type: LONG - name: UpdatedAt type: DATE An existing Category entity should be loaded from the relative URL: "/CategoryService/category/{id}" (HTTP-GET) If a new Category entity has been created, the new entity should be posted to the relative URL: "/CategoryService/category" (HTTP-POST) If an existing Category entity has been updated, the modified entity should be sent to the relative URL: "/CategoryService/category/{id}" (HTTP-PUT) If an existing Category entity has to be deleted, the following relative URL should be called: "/CategoryService/category/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ProductCategory columns: - column: Category - column: IsPrimary - column: Product The table should have the title "ProductCategorys" und the data must be loaded from the server with the following relative URL: "/CategoryService/productcategory/category/{id}" 2. The ProductAttributeView must contain the following fields: - name: Code type: STRING - name: CreatedAt type: DATE - name: DataType type: STRING - name: Name type: STRING - name: UpdatedAt type: DATE An existing ProductAttribute entity should be loaded from the relative URL: "/CategoryService/productattribute/{id}" (HTTP-GET) If a new ProductAttribute entity has been created, the new entity should be posted to the relative URL: "/CategoryService/productattribute" (HTTP-POST) If an existing ProductAttribute entity has been updated, the modified entity should be sent to the relative URL: "/CategoryService/productattribute/{id}" (HTTP-PUT) If an existing ProductAttribute entity has to be deleted, the following relative URL should be called: "/CategoryService/productattribute/{id}" (HTTP-DELETE) 3. The ProductCategoryView must contain the following fields: - name: Category type: Category - name: IsPrimary type: BOOL - name: Product type: Product The data source for the [Category] select control should be loaded from the relative URL: "/CategoryService/category" (HTTP-GET) The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing ProductCategory entity should be loaded from the relative URL: "/CategoryService/productcategory/{id}" (HTTP-GET) If a new ProductCategory entity has been created, the new entity should be posted to the relative URL: "/CategoryService/productcategory" (HTTP-POST) If an existing ProductCategory entity has been updated, the modified entity should be sent to the relative URL: "/CategoryService/productcategory/{id}" (HTTP-PUT) If an existing ProductCategory entity has to be deleted, the following relative URL should be called: "/CategoryService/productcategory/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint