Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum
Prompt for the
CourtApp
Please create a React-JS application for the CourtModule. The application has to offer the following views for the user interface: 1. CourtView 2. CourtSportView 3. CourtSurfaceTypeView 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 CourtView must contain the following fields: - name: CourtSurfaceType type: CourtSurfaceType - name: CreatedAt type: DATE - name: Description type: STRING - name: HasWoodSpringFloor type: BOOL - name: Indoor type: BOOL - name: IsActive type: BOOL - name: Name type: STRING The data source for the [CourtSurfaceType] select control should be loaded from the relative URL: "/CourtService/courtsurfacetype" (HTTP-GET) An existing Court entity should be loaded from the relative URL: "/CourtService/court/{id}" (HTTP-GET) If a new Court entity has been created, the new entity should be posted to the relative URL: "/CourtService/court" (HTTP-POST) If an existing Court entity has been updated, the modified entity should be sent to the relative URL: "/CourtService/court/{id}" (HTTP-PUT) If an existing Court entity has to be deleted, the following relative URL should be called: "/CourtService/court/{id}" (HTTP-DELETE) Add a HTML table to the view with the following TrainingSession columns: - column: Court - column: EndDateTime - column: Status - column: CreatedAt - column: MaxParticipants - column: StartDateTime - column: TrainingOffer - column: Coach The table should have the title "TrainingSessions" und the data must be loaded from the server with the following relative URL: "/TrainingSessionService/trainingsession/court/{id}" Add a HTML table to the view with the following Booking columns: - column: CreatedAt - column: EndDateTime - column: Customer - column: BookingType - column: Source - column: Sport - column: Court - column: Status - column: Comment - column: StartDateTime The table should have the title "Bookings" und the data must be loaded from the server with the following relative URL: "/CustomerService/booking/court/{id}" Add a HTML table to the view with the following CourtSport columns: - column: IsPrimary - column: Court - column: Sport The table should have the title "CourtSports" und the data must be loaded from the server with the following relative URL: "/CourtService/courtsport/court/{id}" 2. The CourtSportView must contain the following fields: - name: Court type: Court - name: IsPrimary type: BOOL - name: Sport type: Sport The data source for the [Sport] select control should be loaded from the relative URL: "/SportService/sport" (HTTP-GET) The data source for the [Court] select control should be loaded from the relative URL: "/CourtService/court" (HTTP-GET) An existing CourtSport entity should be loaded from the relative URL: "/CourtService/courtsport/{id}" (HTTP-GET) If a new CourtSport entity has been created, the new entity should be posted to the relative URL: "/CourtService/courtsport" (HTTP-POST) If an existing CourtSport entity has been updated, the modified entity should be sent to the relative URL: "/CourtService/courtsport/{id}" (HTTP-PUT) If an existing CourtSport entity has to be deleted, the following relative URL should be called: "/CourtService/courtsport/{id}" (HTTP-DELETE) 3. The CourtSurfaceTypeView must contain the following fields: - name: CreatedAt type: DATE - name: Description type: STRING - name: IsRecommendedMedically type: BOOL - name: IsWooden type: BOOL - name: Name type: STRING An existing CourtSurfaceType entity should be loaded from the relative URL: "/CourtService/courtsurfacetype/{id}" (HTTP-GET) If a new CourtSurfaceType entity has been created, the new entity should be posted to the relative URL: "/CourtService/courtsurfacetype" (HTTP-POST) If an existing CourtSurfaceType entity has been updated, the modified entity should be sent to the relative URL: "/CourtService/courtsurfacetype/{id}" (HTTP-PUT) If an existing CourtSurfaceType entity has to be deleted, the following relative URL should be called: "/CourtService/courtsurfacetype/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Court columns: - column: Indoor - column: CourtSurfaceType - column: HasWoodSpringFloor - column: IsActive - column: CreatedAt - column: Name - column: Description The table should have the title "Courts" und the data must be loaded from the server with the following relative URL: "/CourtService/court/courtsurfacetype/{id}"
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum