Class UCSBDiningMenuItemsService

java.lang.Object
edu.ucsb.cs156.dining.services.UCSBDiningMenuItemsService

@Service public class UCSBDiningMenuItemsService extends Object
  • Field Details

    • ALL_MEAL_ITEMS_AT_A_DINING_COMMON_ENDPOINT

      public static final String ALL_MEAL_ITEMS_AT_A_DINING_COMMON_ENDPOINT
      See Also:
  • Constructor Details

    • UCSBDiningMenuItemsService

      public UCSBDiningMenuItemsService(org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder) throws Exception
      Throws:
      Exception
  • Method Details

    • get

      public List<Entree> get(String dateTime, String diningCommonCode, String mealCode) throws com.fasterxml.jackson.core.JsonProcessingException
      Create a List of Entree from json representation
      Parameters:
      dateTime - String of date in iso format
      diningCommonCode - String of dining common
      mealCode - String of meal code
      Returns:
      a list of menu items
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException