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