Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
SportView
Please create a React-JS view called "SportView" for the fields of the Sport entity. The SportView must contain the following fields: - name: CreatedAt type: DATE - name: Description type: STRING - name: IsActive type: BOOL - name: Name type: STRING An existing Sport entity should be loaded from the relative URL: "/SportService/sport/{id}" (HTTP-GET) If a new Sport entity has been created, the new entity should be posted to the relative URL: "/SportService/sport" (HTTP-POST) If an existing Sport entity has been updated, the modified entity should be sent to the relative URL: "/SportService/sport/{id}" (HTTP-PUT) If an existing Sport entity has to be deleted, the following relative URL should be called: "/SportService/sport/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TrainingOffer columns: - column: Level - column: Description - column: IsActive - column: GroupSizeMax - column: GroupSizeMin - column: Sport - column: DefaultPrice - column: CreatedAt - column: Name - column: DurationMinutes The table should have the title "TrainingOffers" und the data must be loaded from the server with the following relative URL: "/CoachService/trainingoffer/sport/{id}" Add a HTML table to the view with the following Event columns: - column: EndDateTime - column: Status - column: Name - column: Sport - column: LocationText - column: MaxParticipants - column: PublicVisible - column: Description - column: RegistrationDeadline - column: StartDateTime - column: CreatedAt The table should have the title "Events" und the data must be loaded from the server with the following relative URL: "/SportService/event/sport/{id}" Add a HTML table to the view with the following PriceItem columns: - column: MembershipType - column: PriceList - column: Sport - column: CreatedAt - column: TimeFrom - column: PricePerHour - column: TimeTo - column: DayOfWeek - column: BookingType The table should have the title "PriceItems" und the data must be loaded from the server with the following relative URL: "/MembershipTypeService/priceitem/sport/{id}" Add a HTML table to the view with the following Booking columns: - column: BookingType - column: Court - column: EndDateTime - column: Status - column: Source - column: Comment - column: CreatedAt - column: StartDateTime - column: Customer - column: Sport The table should have the title "Bookings" und the data must be loaded from the server with the following relative URL: "/SportService/booking/sport/{id}" Add a HTML table to the view with the following CourtSport columns: - column: Court - column: IsPrimary - column: Sport The table should have the title "CourtSports" und the data must be loaded from the server with the following relative URL: "/SportService/courtsport/sport/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum