Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jan Edrozo | Carets #32

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open

Jan Edrozo | Carets #32

wants to merge 38 commits into from

Conversation

JNEdrozo
Copy link

@JNEdrozo JNEdrozo commented Nov 6, 2017

API Muncher

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
How did you go about exploring the Edamam API, how did you try querying the API? I reviewed the Edamam documentation and tested request paths in Postman (occasionally using awesome print to confirm responses).
Describe your API Wrapper. How did you decide on the methods you created? I have 2 self methods (show_recipe and list_recipes) so I could retrieve a list of recipes (based on search term) as well as retrieve info for a specific recipe (using its uri).
Describe an edge case or failure case test you wrote for your API Wrapper. A fail case would be for a bad request (e.g. a search term that does not have any recipe results like a number), and I tested to make sure it returns an empty array
Explain how VCR aids in testing an API. VCR aids in testing because it reduces the number of API calls we make since we can reuse API responses stored in the cassettes.
What is the Heroku URL of your deployed application? https://recipoogle.herokuapp.com/

…ded the dotenv gem to read the app_id and key in the .env file
…ser enters a search term (does not exclude spaces)
@CheezItMan
Copy link

API Muncher

What We're Looking For

Feature Feedback
Core Requirements
Git hygiene Very good commits!
Comprehension questions Check
General
Rails fundamentals (RESTful routing, use of named paths) Check
Semantic HTML Good semantic HTML, I think some of the div elements could be removed.
Errors are reported to the user You have flash notices, but did not put them in the views!
API Wrapper to handle the API requests Check
Controller testing Well done here
Lib testing No testing on the show recipe method.
Search Functionality Check
List Functionality Check
Show individual item functionality (link to original recipe opens in new tab) Check, but not in a new tab
Styling
Foundation Styling for responsive layout Check
List View shows 10 items at a time/pagination Check
The app is styled to create an attractive user interface Very nicely styled here.
API Features
The App attributes Edaman Check
The VCR casettes do not contain the API key Check
External Resources
Link to deployed app on Heroku Well done
Overall Very nicely done, you missed a couple of tests in your wrapper, but I think that was just an oversight. Well done!

end

describe "self#list_recipes" do
it "Can list a group of channels" do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something's missing here!

end
end
end
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests for the show_recipe method?

@@ -0,0 +1,68 @@
require "test_helper"

describe RecipesController do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good set of tests here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants