Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
TrainingOfferView
Please create a React-JS view called "TrainingOfferView" for the fields of the TrainingOffer entity. The TrainingOfferView must contain the following fields: - name: CreatedAt type: DATE - name: DefaultPrice type: STRING - name: Description type: STRING - name: DurationMinutes type: LONG - name: GroupSizeMax type: LONG - name: GroupSizeMin type: LONG - name: IsActive type: BOOL - name: Level type: STRING - name: Name type: STRING - name: Sport type: Sport The data source for the [Sport] select control should be loaded from the relative URL: "/SportService/sport" (HTTP-GET) An existing TrainingOffer entity should be loaded from the relative URL: "/CoachService/trainingoffer/{id}" (HTTP-GET) If a new TrainingOffer entity has been created, the new entity should be posted to the relative URL: "/CoachService/trainingoffer" (HTTP-POST) If an existing TrainingOffer entity has been updated, the modified entity should be sent to the relative URL: "/CoachService/trainingoffer/{id}" (HTTP-PUT) If an existing TrainingOffer entity has to be deleted, the following relative URL should be called: "/CoachService/trainingoffer/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TrainingSession columns: - column: Status - column: CreatedAt - column: EndDateTime - column: Court - column: Coach - column: StartDateTime - column: TrainingOffer - column: MaxParticipants The table should have the title "TrainingSessions" und the data must be loaded from the server with the following relative URL: "/CoachService/trainingsession/trainingoffer/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum