Overview
Summary
Services
Contact
Donate
About
Imprint
Prompt for the
AmenityApp
Please create a React-JS application for the AmenityModule. The application has to offer the following views for the user interface: 1. AmenityView 2. HiddenCameraIncidentView 3. ListingAmenityView 4. ReviewView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 4 views are defined below. 1. The AmenityView must contain the following fields: - name: Category type: STRING - name: Name type: STRING An existing Amenity entity should be loaded from the relative URL: "/AmenityService/amenity/{id}" (HTTP-GET) If a new Amenity entity has been created, the new entity should be posted to the relative URL: "/AmenityService/amenity" (HTTP-POST) If an existing Amenity entity has been updated, the modified entity should be sent to the relative URL: "/AmenityService/amenity/{id}" (HTTP-PUT) If an existing Amenity entity has to be deleted, the following relative URL should be called: "/AmenityService/amenity/{id}" (HTTP-DELETE) Add a HTML table to the view with the following ListingAmenity columns: - column: Listing - column: Amenity The table should have the title "ListingAmenitys" und the data must be loaded from the server with the following relative URL: "/AmenityService/listingamenity/amenity/{id}" 2. The HiddenCameraIncidentView must contain the following fields: - name: Description type: STRING - name: InvolvedGuests type: INT - name: LawEnforcementContacted type: BOOL - name: Listing type: Listing - name: ReportedAt type: DATE - name: SettlementType type: STRING The data source for the [Listing] select control should be loaded from the relative URL: "/ListingService/listing" (HTTP-GET) An existing HiddenCameraIncident entity should be loaded from the relative URL: "/AmenityService/hiddencameraincident/{id}" (HTTP-GET) If a new HiddenCameraIncident entity has been created, the new entity should be posted to the relative URL: "/AmenityService/hiddencameraincident" (HTTP-POST) If an existing HiddenCameraIncident entity has been updated, the modified entity should be sent to the relative URL: "/AmenityService/hiddencameraincident/{id}" (HTTP-PUT) If an existing HiddenCameraIncident entity has to be deleted, the following relative URL should be called: "/AmenityService/hiddencameraincident/{id}" (HTTP-DELETE) 3. The ListingAmenityView must contain the following fields: - name: Amenity type: Amenity - name: Listing type: Listing The data source for the [Amenity] select control should be loaded from the relative URL: "/AmenityService/amenity" (HTTP-GET) The data source for the [Listing] select control should be loaded from the relative URL: "/ListingService/listing" (HTTP-GET) An existing ListingAmenity entity should be loaded from the relative URL: "/AmenityService/listingamenity/{id}" (HTTP-GET) If a new ListingAmenity entity has been created, the new entity should be posted to the relative URL: "/AmenityService/listingamenity" (HTTP-POST) If an existing ListingAmenity entity has been updated, the modified entity should be sent to the relative URL: "/AmenityService/listingamenity/{id}" (HTTP-PUT) If an existing ListingAmenity entity has to be deleted, the following relative URL should be called: "/AmenityService/listingamenity/{id}" (HTTP-DELETE) 4. The ReviewView must contain the following fields: - name: Booking type: Booking - name: Comment type: STRING - name: CreatedAt type: DATE - name: RatingCleanliness type: DOUBLE - name: RatingCommunication type: DOUBLE - name: RatingLocation type: DOUBLE - name: RatingOverall type: DOUBLE - name: RatingValue type: DOUBLE - name: Reviewee type: LONG - name: Reviewer type: LONG - name: ReviewType type: STRING The data source for the [Booking] select control should be loaded from the relative URL: "/ListingService/booking" (HTTP-GET) An existing Review entity should be loaded from the relative URL: "/AmenityService/review/{id}" (HTTP-GET) If a new Review entity has been created, the new entity should be posted to the relative URL: "/AmenityService/review" (HTTP-POST) If an existing Review entity has been updated, the modified entity should be sent to the relative URL: "/AmenityService/review/{id}" (HTTP-PUT) If an existing Review entity has to be deleted, the following relative URL should be called: "/AmenityService/review/{id}" (HTTP-DELETE)
Copy prompt
Overview
Summary
Services
Contact
Donate
About
Imprint