Overview
Summary
Contact
Donate
Imprint
Prompt for the
ListingView
Please create a React-JS view called "ListingView" for the fields of the Listing entity. The ListingView must contain the following fields: - name: AddressLine type: STRING - name: Bathrooms type: DOUBLE - name: Bedrooms type: INT - name: Beds type: INT - name: City type: City - name: Country type: Country - name: CreatedAt type: DATE - name: Description type: STRING - name: HostProfile type: HostProfile - name: IsInstantBookable type: BOOL - name: Latitude type: DOUBLE - name: Longitude type: DOUBLE - name: MaxGuests type: INT - name: PostalCode type: STRING - name: PropertyType type: STRING - name: RoomType type: STRING - name: Status type: STRING - name: Title type: STRING - name: UpdatedAt type: DATE The data source for the [HostProfile] select control should be loaded from the relative URL: "/HostProfileService/hostprofile" (HTTP-GET) The data source for the [Country] select control should be loaded from the relative URL: "/CountryService/country" (HTTP-GET) The data source for the [City] select control should be loaded from the relative URL: "/ListingService/city" (HTTP-GET) An existing Listing entity should be loaded from the relative URL: "/ListingService/listing/{id}" (HTTP-GET) If a new Listing entity has been created, the new entity should be posted to the relative URL: "/ListingService/listing" (HTTP-POST) If an existing Listing entity has been updated, the modified entity should be sent to the relative URL: "/ListingService/listing/{id}" (HTTP-PUT) If an existing Listing entity has to be deleted, the following relative URL should be called: "/ListingService/listing/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Booking columns: - column: CleaningFee - column: Listing - column: CheckInDate - column: BookingStatus - column: GuestProfile - column: CreatedAt - column: CancellationPolicy - column: CheckOutDate - column: ServiceFeeGuest - column: TotalPrice - column: ServiceFeeHost - column: CancelledAt - column: Currency - column: ConfirmedAt - column: NumberOfGuests The table should have the title "Bookings" und the data must be loaded from the server with the following relative URL: "/BookingService/booking/listing/{id}" Add a HTML table to the view with the following AvailabilityCalendar columns: - column: IsAvailable - column: Listing - column: MaximumNights - column: Date - column: PricePerNight - column: Currency - column: MinimumNights The table should have the title "AvailabilityCalendars" und the data must be loaded from the server with the following relative URL: "/HostProfileService/availabilitycalendar/listing/{id}" Add a HTML table to the view with the following MessageThread columns: - column: CreatedAt - column: Listing The table should have the title "MessageThreads" und the data must be loaded from the server with the following relative URL: "/MessageThreadService/messagethread/listing/{id}" Add a HTML table to the view with the following ListingPhoto columns: - column: CreatedAt - column: Url - column: SortOrder - column: Caption - column: Listing The table should have the title "ListingPhotos" und the data must be loaded from the server with the following relative URL: "/HostProfileService/listingphoto/listing/{id}" 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/listing/{id}" Add a HTML table to the view with the following StockListing columns: - column: Exchange - column: Isin - column: ListingDate - column: Segment - column: Ticker - column: Company The table should have the title "StockListings" und the data must be loaded from the server with the following relative URL: "/CompanyService/stocklisting/listingdate/{id}" Add a HTML table to the view with the following FraudCase columns: - column: PlatformUserReporter - column: ResolvedAt - column: Status - column: Listing - column: CaseType - column: Description - column: ReportedAt The table should have the title "FraudCases" und the data must be loaded from the server with the following relative URL: "/PlatformUserService/fraudcase/listing/{id}" Add a HTML table to the view with the following HiddenCameraIncident columns: - column: SettlementType - column: ReportedAt - column: Description - column: InvolvedGuests - column: LawEnforcementContacted - column: Listing The table should have the title "HiddenCameraIncidents" und the data must be loaded from the server with the following relative URL: "/CompanyService/hiddencameraincident/listing/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint