Overview
Summary
Contact
Donate
Imprint
Prompt for the
PollView
Please create a React-JS view called "PollView" for the fields of the Poll entity. The PollView must contain the following fields: - name: ClosedAt type: DATE - name: CreatedAt type: DATE - name: CreatedBy type: UserAccount - name: Description type: STRING - name: IsActive type: BOOL - name: Question type: STRING The data source for the [CreatedBy] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Poll entity should be loaded from the relative URL: "/UserAccountService/poll/{id}" (HTTP-GET) If a new Poll entity has been created, the new entity should be posted to the relative URL: "/UserAccountService/poll" (HTTP-POST) If an existing Poll entity has been updated, the modified entity should be sent to the relative URL: "/UserAccountService/poll/{id}" (HTTP-PUT) If an existing Poll entity has to be deleted, the following relative URL should be called: "/UserAccountService/poll/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PollOption columns: - column: Position - column: Title - column: Text - column: Person - column: Poll The table should have the title "PollOptions" und the data must be loaded from the server with the following relative URL: "/PersonService/polloption/poll/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint