Overview
Summary
Contact
Donate
Imprint
Prompt for the
QuestionView
Please create a React-JS view called "QuestionView" for the fields of the Question entity. The QuestionView must contain the following fields: - name: Body type: STRING - name: CreatedAt type: DATE - name: Customer type: Customer - name: Product type: Product - name: Title type: STRING The data source for the [Customer] select control should be loaded from the relative URL: "/CustomerService/customer" (HTTP-GET) The data source for the [Product] select control should be loaded from the relative URL: "/ProductService/product" (HTTP-GET) An existing Question entity should be loaded from the relative URL: "/ProductService/question/{id}" (HTTP-GET) If a new Question entity has been created, the new entity should be posted to the relative URL: "/ProductService/question" (HTTP-POST) If an existing Question entity has been updated, the modified entity should be sent to the relative URL: "/ProductService/question/{id}" (HTTP-PUT) If an existing Question entity has to be deleted, the following relative URL should be called: "/ProductService/question/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Answer columns: - column: Body - column: Customer - column: Question - column: CreatedAt - column: Seller The table should have the title "Answers" und the data must be loaded from the server with the following relative URL: "/ProductService/answer/question/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint