Skip to content

Latest commit

 

History

History
73 lines (60 loc) · 2.03 KB

README.md

File metadata and controls

73 lines (60 loc) · 2.03 KB

Knead Recipes Logo

Live App Available At Knead Recipes App

About

This is the API microservice for the Knead Recipes application. It recieves an API request, sends a request to the Spoonacular API, and returns the response back to the primary application. It was built using a Sinatra framework, and utilizes Faraday to establish it's connections.

Installing

Clone down the repository:

$ git clone https://github.com/alex-latham/knead_recipes_microservice.git

Run bundle to install all required gems:

$ bundle install

Configure Microservice:

Get a Spoonacular key from Spoonacular

Create var.env in root microservice directory

Insert Spoonacular API key into var.env

SPOONACULAR_KEY=<YOUR API KEY>

Launching the Microservice spins it up on localhost:9393:

$ bundle exec shotgun

Features

Requests

  • To return the information, in json, about a single recipe
http://localhost:9393/recipe?id=1
  • To return information about multiple recipes, provide the IDs without spaces and separated by commas
http://localhost:9393/recipes?ids=1,2,3
  • To return information about multiple recipes with additional (optional) query params

http://localhost:9393/recipes/compleSearch?includeIngredients=beef&time=120&type=main+course

Developers

Fred Rondina

Alex Latham

Mike Hernandez

David Tran