Overview
Summary
Contact
Donate
Imprint
Prompt for the
RestaurantApp
Please create a React-JS application for the RestaurantModule. The application has to offer the following views for the user interface: 1. CityView 2. MenuView 3. OpeningHourView 4. PromotionView 5. RestaurantView The views have to be reachable for the user via a menu list at the left side of each view. The requirements for the 5 views are defined below. 1. The CityView must contain the following fields: - name: Country type: STRING - name: Name type: STRING - name: PostalCode type: STRING - name: Region type: STRING An existing City entity should be loaded from the relative URL: "/RestaurantService/city/{id}" (HTTP-GET) If a new City entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/city" (HTTP-POST) If an existing City entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/city/{id}" (HTTP-PUT) If an existing City entity has to be deleted, the following relative URL should be called: "/RestaurantService/city/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Restaurant columns: - column: PickupAvailable - column: Email - column: OpenFromTime - column: IsSponsored - column: Longitude - column: AverageRating - column: OpenUntilTime - column: City - column: PostalCode - column: MinimumOrderAmount - column: Street - column: PhoneNumber - column: Name - column: DeliveryAvailable - column: BrandName - column: DeliveryFee - column: CreatedAt - column: IsOpenNow - column: UpdatedAt - column: RatingCount - column: FreeDeliveryPossible - column: PreparationTimeMinutes - column: IsHalal - column: WebsiteUrl - column: Description - column: IsNew - column: HouseNumber - column: Latitude The table should have the title "Restaurants" und the data must be loaded from the server with the following relative URL: "/RestaurantService/restaurant/city/{id}" Add a HTML table to the view with the following CustomerAddress columns: - column: IsDefault - column: Customer - column: Street - column: AddressExtra - column: Label - column: PostalCode - column: HouseNumber - column: Longitude - column: City - column: Latitude The table should have the title "CustomerAddresss" und the data must be loaded from the server with the following relative URL: "/CustomerService/customeraddress/city/{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/city/{id}" 2. The MenuView must contain the following fields: - name: Description type: STRING - name: IsActive type: BOOL - name: Name type: STRING - name: Restaurant type: Restaurant - name: SortOrder type: LONG The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) An existing Menu entity should be loaded from the relative URL: "/RestaurantService/menu/{id}" (HTTP-GET) If a new Menu entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/menu" (HTTP-POST) If an existing Menu entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/menu/{id}" (HTTP-PUT) If an existing Menu entity has to be deleted, the following relative URL should be called: "/RestaurantService/menu/{id}" (HTTP-DELETE) Add a HTML table to the view with the following MenuSection columns: - column: Menu - column: Description - column: SortOrder - column: Name The table should have the title "MenuSections" und the data must be loaded from the server with the following relative URL: "/MenuItemService/menusection/menu/{id}" 3. The OpeningHourView must contain the following fields: - name: AppliesToDelivery type: BOOL - name: AppliesToPickup type: BOOL - name: CloseTime type: STRING - name: DayOfWeek type: LONG - name: OpenTime type: STRING - name: Restaurant type: Restaurant The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) An existing OpeningHour entity should be loaded from the relative URL: "/RestaurantService/openinghour/{id}" (HTTP-GET) If a new OpeningHour entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/openinghour" (HTTP-POST) If an existing OpeningHour entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/openinghour/{id}" (HTTP-PUT) If an existing OpeningHour entity has to be deleted, the following relative URL should be called: "/RestaurantService/openinghour/{id}" (HTTP-DELETE) 4. The PromotionView must contain the following fields: - name: Description type: STRING - name: DiscountType type: STRING - name: DiscountValue type: STRING - name: EndDate type: DATE - name: IsActive type: BOOL - name: MinimumOrderAmount type: STRING - name: Name type: STRING - name: Restaurant type: Restaurant - name: StartDate type: DATE The data source for the [Restaurant] select control should be loaded from the relative URL: "/RestaurantService/restaurant" (HTTP-GET) An existing Promotion entity should be loaded from the relative URL: "/RestaurantService/promotion/{id}" (HTTP-GET) If a new Promotion entity has been created, the new entity should be posted to the relative URL: "/RestaurantService/promotion" (HTTP-POST) If an existing Promotion entity has been updated, the modified entity should be sent to the relative URL: "/RestaurantService/promotion/{id}" (HTTP-PUT) If an existing Promotion entity has to be deleted, the following relative URL should be called: "/RestaurantService/promotion/{id}" (HTTP-DELETE) Add a HTML table to the view with the following PromotionMenuItemLink columns: - column: Promotion - column: MenuItem The table should have the title "PromotionMenuItemLinks" und the data must be loaded from the server with the following relative URL: "/MenuItemService/promotionmenuitemlink/promotion/{id}" 5. 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