Interface SpoonacularService

All Known Implementing Classes:
SpoonacularServiceImpl

public interface SpoonacularService
Interface for SpoonacularServiceImpl
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
    The Spoonacular identifier for RapidApi
    static String
    The API key for the Spoonacular API
    static HttpClient
    An HttpClient for sending POST/GET requests to the Spoonacular API
    static com.google.gson.Gson
    A Google JSON Parser object for parsing the results of the Spoonacular API
  • Method Summary

    Modifier and Type
    Method
    Description
    recommend​(Set<Recipe> userRecipes)
     
    search​(Map<String,​String> searchParameters)
     
  • Field Details

    • APIKEY

      static final String APIKEY
      The API key for the Spoonacular API
    • APIHOST

      static final String APIHOST
      The Spoonacular identifier for RapidApi
      See Also:
      Constant Field Values
    • client

      static final HttpClient client
      An HttpClient for sending POST/GET requests to the Spoonacular API
    • parser

      static final com.google.gson.Gson parser
      A Google JSON Parser object for parsing the results of the Spoonacular API
  • Method Details