Overview
Summary
Contact
Donate
Imprint
Prompt for the
RestaurantView
Please create a React-JS view called "RestaurantView" for the fields of the Restaurant entity. The RestaurantView must contain the following fields: - name: AverageRating type: STRING - name: BrandName type: STRING - name: City type: City - name: CreatedAt type: DATE - name: DeliveryAvailable type: BOOL - name: DeliveryFee type: STRING - name: Description type: STRING - name: Email type: STRING - name: FreeDeliveryPossible type: BOOL - name: HouseNumber type: STRING - name: IsHalal type: BOOL - name: IsNew type: BOOL - name: IsOpenNow type: BOOL - name: IsSponsored type: BOOL - name: Latitude type: STRING - name: Longitude type: STRING - name: MinimumOrderAmount type: STRING - name: Name type: STRING - name: OpenFromTime type: STRING - name: OpenUntilTime type: STRING - name: PhoneNumber type: STRING - name: PickupAvailable type: BOOL - name: PostalCode type: STRING - name: PreparationTimeMinutes type: LONG - name: RatingCount type: LONG - name: Street type: STRING - name: UpdatedAt type: DATE - name: WebsiteUrl type: STRING The data source for the [City] select control should be loaded from the relative URL: "/RestaurantService/city" (HTTP-GET) An existing Restaurant entity should be loaded from the relative URL: "/RestaurantService/restaurant/{id}" (HTTP-GET) If a new Restaurant entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/restaurant" (HTTP-POST) If an existing Restaurant entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/restaurant/{id}" (HTTP-PUT) If an existing Restaurant entity has to be deleted, the following relative URL should be called: "/RestaurantService/restaurant/{id}" (HTTP-DELETE) Add a HTML table to the view with the following LoyaltyProgram columns: - column: Restaurant - column: Name - column: RequiredStamps - column: IsActive - column: RewardDescription - column: Description The table should have the title "LoyaltyPrograms" und the data must be loaded from the server with the following relative URL: "/CustomerService/loyaltyprogram/restaurant/{id}" Add a HTML table to the view with the following CustomerOrder columns: - column: Notes - column: DeliveryAddress - column: Customer - column: PaymentFee - column: OrderNumber - column: OrderType - column: PaymentMethod - column: TotalAmount - column: Restaurant - column: LoyaltyCard - column: DeliveryFee - column: OrderDateTime - column: SubtotalAmount - column: ScheduledDateTime - column: DiscountAmount - column: Status The table should have the title "CustomerOrders" und the data must be loaded from the server with the following relative URL: "/PaymentMethodService/customerorder/restaurant/{id}" Add a HTML table to the view with the following RestaurantCategoryLink columns: - column: RestaurantCategory - column: Restaurant The table should have the title "RestaurantCategoryLinks" und the data must be loaded from the server with the following relative URL: "/RestaurantCategoryService/restaurantcategorylink/restaurant/{id}" Add a HTML table to the view with the following Menu columns: - column: IsActive - column: Name - column: Description - column: SortOrder - column: Restaurant The table should have the title "Menus" und the data must be loaded from the server with the following relative URL: "/RestaurantService/menu/restaurant/{id}" Add a HTML table to the view with the following DeliveryArea columns: - column: DeliveryFee - column: Restaurant - column: MinimumOrderAmount - column: IsActive - column: Name - column: PostalCode - column: City The table should have the title "DeliveryAreas" und the data must be loaded from the server with the following relative URL: "/MenuItemTagService/deliveryarea/restaurant/{id}" Add a HTML table to the view with the following RestaurantTagLink columns: - column: Restaurant - column: RestaurantTag The table should have the title "RestaurantTagLinks" und the data must be loaded from the server with the following relative URL: "/RestaurantTagService/restauranttaglink/restaurant/{id}" Add a HTML table to the view with the following Rating columns: - column: CreatedAt - column: Restaurant - column: Comment - column: Customer - column: CustomerOrder - column: IsVerified - column: RatingValue The table should have the title "Ratings" und the data must be loaded from the server with the following relative URL: "/RestaurantTagService/rating/restaurant/{id}" Add a HTML table to the view with the following Promotion columns: - column: EndDate - column: StartDate - column: Restaurant - column: DiscountType - column: MinimumOrderAmount - column: IsActive - column: Name - column: Description - column: DiscountValue The table should have the title "Promotions" und the data must be loaded from the server with the following relative URL: "/RestaurantService/promotion/restaurant/{id}" Add a HTML table to the view with the following OpeningHour columns: - column: DayOfWeek - column: OpenTime - column: AppliesToDelivery - column: Restaurant - column: CloseTime - column: AppliesToPickup The table should have the title "OpeningHours" und the data must be loaded from the server with the following relative URL: "/RestaurantService/openinghour/restaurant/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint