app/controllers/application_controller.rb
# ---------- API requests ------------
# create an API request, create show objects, pass into get_services function to do another API request to 
# retreive the services then update the objects and return objects to front end
# request params structure : {search_params: "string"}
API requests
create an API request, create show objects, pass into get_services function to do another API request to
retreive the services then update the objects and return objects to front end
request params structure : {search_params: "string"}
API requests create an API request create show objects pass into get_services function to do another API request to retreive the services then update the objects and return objects to front end request params structure : { search_params : " string " }
def search_shows
        request = ImdbApiStringRequest.new(params)
        results = request.create_show_objects
        shows = get_services(results.first(5))
        render json: shows
    end
def search_shows request = ImdbApiStringRequest . new ( params ) results = request . create_show_objects shows = get_services ( results . first ( 5 ) ) render json : shows end
API requests
create an API request, create show objects, pass into get_services function to do another API request to
retreive the services then update the objects and return objects to front end
request params structure : {search_params: "string"}
API requests create an API request create show objects pass into get_services function to do another API request to retreive the services then update the objects and return objects to front end request params structure : { search_params : " string " }
# p shows