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. CourtSurfaceTypeView 3. NewsPostView 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: 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/court/{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/court/{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/court/{id}" 2. 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: HasWoodSpringFloor - column: Indoor - column: Name - column: CreatedAt - column: Description - column: IsActive - column: CourtSurfaceType 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}" 3. The NewsPostView must contain the following fields: - name: BodyHtml type: STRING - name: CreatedAt type: DATE - name: Highlighted type: BOOL - name: IsVisible type: BOOL - name: PublishedAt type: DATE - name: Slug type: STRING - name: Title type: STRING An existing NewsPost entity should be loaded from the relative URL: "/CourtService/newspost/{id}" (HTTP-GET) If a new NewsPost entity has been created, the new entity should be posted to the relative URL: "/CourtService/newspost" (HTTP-POST) If an existing NewsPost entity has been updated, the modified entity should be sent to the relative URL: "/CourtService/newspost/{id}" (HTTP-PUT) If an existing NewsPost entity has to be deleted, the following relative URL should be called: "/CourtService/newspost/{id}" (HTTP-DELETE)
Copy prompt
Overview
My API
System Designs
Dienstleistungen
Kontakt
Energieausgleich
Ansprechpartner
Impressum