Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SportsTeamApp
Please create a React-JS application for the SportsTeamModule. The application has to offer the following views for the user interface: 1. ContactRequestView 2. ContactTopicView 3. SportsTeamView 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 ContactRequestView must contain the following fields: - name: ConsentMarketing type: BOOL - name: ContactTopic type: ContactTopic - name: CreatedAt type: DATE - name: Email type: STRING - name: Message type: STRING - name: Name type: STRING - name: PhoneNumber type: STRING - name: Subject type: STRING The data source for the [ContactTopic] select control should be loaded from the relative URL: "/SportsTeamService/contacttopic" (HTTP-GET) An existing ContactRequest entity should be loaded from the relative URL: "/SportsTeamService/contactrequest/{id}" (HTTP-GET) If a new ContactRequest entity has been created, the new entity should be posted to the relative URL: "/SportsTeamService/contactrequest" (HTTP-POST) If an existing ContactRequest entity has been updated, the modified entity should be sent to the relative URL: "/SportsTeamService/contactrequest/{id}" (HTTP-PUT) If an existing ContactRequest entity has to be deleted, the following relative URL should be called: "/SportsTeamService/contactrequest/{id}" (HTTP-DELETE) 2. The ContactTopicView must contain the following fields: - name: Description type: STRING - name: Name type: STRING An existing ContactTopic entity should be loaded from the relative URL: "/SportsTeamService/contacttopic/{id}" (HTTP-GET) If a new ContactTopic entity has been created, the new entity should be posted to the relative URL: "/SportsTeamService/contacttopic" (HTTP-POST) If an existing ContactTopic entity has been updated, the modified entity should be sent to the relative URL: "/SportsTeamService/contacttopic/{id}" (HTTP-PUT) If an existing ContactTopic entity has to be deleted, the following relative URL should be called: "/SportsTeamService/contacttopic/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ContactRequest columns: - column: ConsentMarketing - column: ContactTopic - column: Name - column: CreatedAt - column: PhoneNumber - column: Subject - column: Email - column: Message The table should have the title "ContactRequests" und the data must be loaded from the server with the following relative URL: "/SportsTeamService/contactrequest/contacttopic/{id}" 3. The SportsTeamView must contain the following fields: - name: City type: STRING - name: Country type: STRING - name: HomeArena type: Arena - name: IsHomeTeam type: BOOL - name: Name type: STRING - name: ShortName type: STRING - name: WebsiteUrl type: STRING The data source for the [HomeArena] select control should be loaded from the relative URL: "/EventService/arena" (HTTP-GET) An existing SportsTeam entity should be loaded from the relative URL: "/SportsTeamService/sportsteam/{id}" (HTTP-GET) If a new SportsTeam entity has been created, the new entity should be posted to the relative URL: "/SportsTeamService/sportsteam" (HTTP-POST) If an existing SportsTeam entity has been updated, the modified entity should be sent to the relative URL: "/SportsTeamService/sportsteam/{id}" (HTTP-PUT) If an existing SportsTeam entity has to be deleted, the following relative URL should be called: "/SportsTeamService/sportsteam/{id}" (HTTP-DELETE) Add a HTML table to the view with the following SportsMatch columns: - column: HomeTeam - column: MatchDay - column: Event - column: AwayTeam - column: League - column: IsPenalty - column: AwayScore - column: IsOvertime - column: HomeScore - column: Notes The table should have the title "SportsMatchs" und the data must be loaded from the server with the following relative URL: "/EventService/sportsmatch/hometeam/{id}" Add a HTML table to the view with the following SportsMatch columns: - column: HomeTeam - column: MatchDay - column: Event - column: AwayTeam - column: League - column: IsPenalty - column: AwayScore - column: IsOvertime - column: HomeScore - column: Notes The table should have the title "SportsMatchs" und the data must be loaded from the server with the following relative URL: "/EventService/sportsmatch/awayteam/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum