Overview
Summary
Contact
Donate
Imprint
Prompt for the
SpaceApp
Please create a React-JS application for the SpaceModule. The application has to offer the following views for the user interface: 1. ReportView 2. SpaceView 3. SpaceParticipantView 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 ReportView must contain the following fields: - name: Category type: STRING - name: CreatedAt type: STRING - name: Description type: STRING - name: ReportedTweet type: Tweet - name: ReportedUser type: UserAccount - name: ReporterUser type: UserAccount - name: ResolvedAt type: STRING - name: ResolverUser type: UserAccount - name: Status type: STRING The data source for the [ResolverUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [ReportedUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [ReportedTweet] select control should be loaded from the relative URL: "/TweetService/tweet" (HTTP-GET) The data source for the [ReporterUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Report entity should be loaded from the relative URL: "/SpaceService/report/{id}" (HTTP-GET) If a new Report entity has been created, the new entity should be posted to the relative URL: "/SpaceService/report" (HTTP-POST) If an existing Report entity has been updated, the modified entity should be sent to the relative URL: "/SpaceService/report/{id}" (HTTP-PUT) If an existing Report entity has to be deleted, the following relative URL should be called: "/SpaceService/report/{id}" (HTTP-DELETE) 2. The SpaceView must contain the following fields: - name: CreatedAt type: STRING - name: CreatorUser type: UserAccount - name: Description type: STRING - name: EndedAt type: STRING - name: IsRecorded type: BOOL - name: Language type: STRING - name: ScheduledStart type: STRING - name: StartedAt type: STRING - name: Title type: STRING The data source for the [CreatorUser] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing Space entity should be loaded from the relative URL: "/SpaceService/space/{id}" (HTTP-GET) If a new Space entity has been created, the new entity should be posted to the relative URL: "/SpaceService/space" (HTTP-POST) If an existing Space entity has been updated, the modified entity should be sent to the relative URL: "/SpaceService/space/{id}" (HTTP-PUT) If an existing Space entity has to be deleted, the following relative URL should be called: "/SpaceService/space/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SpaceParticipant columns: - column: User - column: Space - column: LeftAt - column: JoinedAt - column: Role The table should have the title "SpaceParticipants" und the data must be loaded from the server with the following relative URL: "/SpaceService/spaceparticipant/space/{id}" 3. The SpaceParticipantView must contain the following fields: - name: JoinedAt type: STRING - name: LeftAt type: STRING - name: Role type: STRING - name: Space type: Space - name: User type: UserAccount The data source for the [Space] select control should be loaded from the relative URL: "/SpaceService/space" (HTTP-GET) The data source for the [User] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing SpaceParticipant entity should be loaded from the relative URL: "/SpaceService/spaceparticipant/{id}" (HTTP-GET) If a new SpaceParticipant entity has been created, the new entity should be posted to the relative URL: "/SpaceService/spaceparticipant" (HTTP-POST) If an existing SpaceParticipant entity has been updated, the modified entity should be sent to the relative URL: "/SpaceService/spaceparticipant/{id}" (HTTP-PUT) If an existing SpaceParticipant entity has to be deleted, the following relative URL should be called: "/SpaceService/spaceparticipant/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Contact
Donate
Imprint