Overview
Summary
Contact
Donate
Imprint
Prompt for the
HostProfileView
Please create a React-JS view called "HostProfileView" for the fields of the HostProfile entity. The HostProfileView must contain the following fields: - name: About type: STRING - name: CreatedAt type: DATE - name: IsSuperhost type: BOOL - name: OverallRating type: DOUBLE - name: PlatformUser type: PlatformUser - name: ResponseRate type: DOUBLE - name: ResponseTime type: STRING - name: SuperhostSince type: DATE The data source for the [PlatformUser] select control should be loaded from the relative URL: "/PlatformUserService/platformuser" (HTTP-GET) An existing HostProfile entity should be loaded from the relative URL: "/HostProfileService/hostprofile/{id}" (HTTP-GET) If a new HostProfile entity has been created, the new entity should be posted to the relative URL: "/HostProfileService/hostprofile" (HTTP-POST) If an existing HostProfile entity has been updated, the modified entity should be sent to the relative URL: "/HostProfileService/hostprofile/{id}" (HTTP-PUT) If an existing HostProfile entity has to be deleted, the following relative URL should be called: "/HostProfileService/hostprofile/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Listing columns: - column: PostalCode - column: UpdatedAt - column: IsInstantBookable - column: PropertyType - column: Title - column: Status - column: Country - column: City - column: Bathrooms - column: CreatedAt - column: AddressLine - column: Beds - column: Bedrooms - column: MaxGuests - column: Latitude - column: HostProfile - column: Description - column: RoomType - column: Longitude The table should have the title "Listings" und the data must be loaded from the server with the following relative URL: "/ListingService/listing/hostprofile/{id}" Add a HTML table to the view with the following Payout columns: - column: Booking - column: PayoutDate - column: Amount - column: PayoutMethod - column: HostProfile - column: PayoutStatus - column: Currency The table should have the title "Payouts" und the data must be loaded from the server with the following relative URL: "/HostProfileService/payout/hostprofile/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint