Overview
Summary
Contact
Donate
Imprint
Prompt for the
ServerView
Please create a React-JS view called "ServerView" for the fields of the Server entity. The ServerView must contain the following fields: - name: CreatedAt type: DATE - name: Description type: STRING - name: IsPublic type: BOOL - name: Name type: STRING - name: OwnerUser type: UserAccount - name: PrimaryLanguage type: STRING - name: Region type: STRING The data source for the [OwnerUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Server entity should be loaded from the relative URL: "/UserAccountService/server/{id}" (HTTP-GET) If a new Server entity has been created, the new entity should be posted to the relative URL: "/UserAccountService/server" (HTTP-POST) If an existing Server entity has been updated, the modified entity should be sent to the relative URL: "/UserAccountService/server/{id}" (HTTP-PUT) If an existing Server entity has to be deleted, the following relative URL should be called: "/UserAccountService/server/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Role columns: - column: Server - column: IsHoisted - column: Name - column: Color - column: IsMentionable - column: Position The table should have the title "Roles" und the data must be loaded from the server with the following relative URL: "/RoleService/role/server/{id}" Add a HTML table to the view with the following ServerMember columns: - column: IsMuted - column: User - column: IsBanned - column: Server - column: JoinedAt - column: Nickname The table should have the title "ServerMembers" und the data must be loaded from the server with the following relative URL: "/ServerMemberService/servermember/server/{id}" Add a HTML table to the view with the following Channel columns: - column: Category - column: Position - column: Name - column: UserLimit - column: Type - column: CreatedAt - column: Bitrate - column: IsNsfw - column: Server The table should have the title "Channels" und the data must be loaded from the server with the following relative URL: "/UserAccountService/channel/server/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint