Overview
Summary
Contact
Donate
Imprint
Prompt for the
SportsEventView
Please create a React-JS view called "SportsEventView" for the fields of the SportsEvent entity. The SportsEventView must contain the following fields: - name: CompetitionName type: STRING - name: Country type: Country - name: EventDate type: STRING - name: Name type: STRING - name: SportType type: STRING - name: Title type: Title - name: Venue type: STRING The data source for the [Country] select control should be loaded from the relative URL: "/TitleService/country" (HTTP-GET) The data source for the [Title] select control should be loaded from the relative URL: "/TitleService/title" (HTTP-GET) An existing SportsEvent entity should be loaded from the relative URL: "/ChannelService/sportsevent/{id}" (HTTP-GET) If a new SportsEvent entity has been created, the new entity should be posted to the relative URL: "/ChannelService/sportsevent" (HTTP-POST) If an existing SportsEvent entity has been updated, the modified entity should be sent to the relative URL: "/ChannelService/sportsevent/{id}" (HTTP-PUT) If an existing SportsEvent entity has to be deleted, the following relative URL should be called: "/ChannelService/sportsevent/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LiveProgram columns: - column: IsSportsEvent - column: Channel - column: EndTime - column: Title - column: SportsEvent - column: StartTime The table should have the title "LivePrograms" und the data must be loaded from the server with the following relative URL: "/ChannelService/liveprogram/sportsevent/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint