Overview
Summary
Contact
Donate
Imprint
Prompt for the
CityView
Please create a React-JS view called "CityView" for the fields of the City entity. 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}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint