Skip to content

Commit

Permalink
Merge pull request #356 from turingschool/2405_b3
Browse files Browse the repository at this point in the history
Remove REST Countries API from endpoint 1
  • Loading branch information
jamisonordway authored Jun 9, 2024
2 parents 1511c73 + 2b09bdb commit 692b2fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions module3/projects/lunch_and_learn/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ Example:

**Requirements:**

* If country is not sent in by the user, you will need to use the [REST Countries API](https://restcountries.com/#api-endpoints-v3-all) to randomly choose one country's name.
* For whichever country is either passed in or chosen at random, find recipes using the [Edamam Recipe API](https://developer.edamam.com/edamam-recipe-api)
* For the country sent in by the user, find recipes using the [Edamam Recipe API](https://developer.edamam.com/edamam-recipe-api)
- Note: use the `q` parameter to search for recipes related to that country
* If the country parameter is either an empty string, or a value that doesn't return any recipes, return an empty array:
```json
Expand Down Expand Up @@ -394,6 +393,6 @@ The response data should contain exactly these elements and nothing more:

Note: We've come up with 3 extensions. If you have an idea of a different feature/technology you'd like to implement as an alternate extension, run it by your instructors to get confirmation that you can use that idea in place of an extension below.

1. For the recipes and learning resources endpoints, use the REST Countries API to validate that the country parameter passed in is in fact a valid country. If it isn't, return an appropriate [400-level status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_errors).
1. For the recipes and learning resources endpoints, use the [REST Countries API](https://restcountries.com/#api-endpoints-v3-all) to validate that the country parameter passed in is in fact a valid country. If it isn't, return an appropriate [400-level status code](https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_Client_errors).
2. Add an endpoint to DELETE a favorite ( DELETE '/api/v1/favorites')
3. Utilize caching OR background workers to optimize API calls.

0 comments on commit 692b2fb

Please sign in to comment.