Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RecipeAPIClient ¶
type RecipeAPIClient struct {
BaseURL string
HTTPClient HttpClient
}
RecipeAPIClient interacts with the Recipe microservice.
func NewRecipeAPIClient ¶
func NewRecipeAPIClient(baseURL string, httpClient HttpClient) (*RecipeAPIClient, error)
NewRecipeAPIClient initializes and returns a RecipeAPIClient instance.
func (*RecipeAPIClient) GetAllRecipes ¶
func (c *RecipeAPIClient) GetAllRecipes() ([]m.RecipeDTO, error)
GetAllRecipes fetches all recipes from the recipe service.
func (*RecipeAPIClient) RecipeExists ¶
func (c *RecipeAPIClient) RecipeExists(recipeID string) (bool, error)
RecipeExists checks if a recipe exists by its ID.
Click to show internal directories.
Click to hide internal directories.