Excellent job, we have everything in place to start pitching for the cocktails, but before we start
typing away, I would want to cover the API we're going to use.
And what essentially are your other options and which options we all use for this particular project
and for this project?
I chose the API by the name of the cocktail DB.
Of course, you can just search for it.
Like I just typed cocktails.
D.B. I'm not essentially should be the first thing that pops up bravely navigate through their site.
Again, the you are the cocktail DB dot com and then more specifically you're looking for API numbers.
They have multiple and points and of course you can explore them what they do.
In our case, we're going to use only two.
Now, some of them are for free, totally free, and some of them you would need to have the Patreon.
Now, what's really cool about this particular API that they don't request Baikie so we don't need to
worry about hiding the key and all that annoying stuff.
Now, the end points we're going to use is this one search cocktail by name.
And also I would want to get lookup full cocktail details, Bayati.
So this year we're going to run in our single cocktail page.
So on here, when we navigate to the page, let's say let's go.
This is where we're run that second URL.
And then in order to display what the user is fetching, we're going to go with the first one.
And then notice here at the end, we have the URL parameter and it is S and an equal sign.
Correct.
And it is a name.
And in our case, of course, we'll pass in the search term.
So whatever our users type in the input equal here in the URL parameters and that way we'll be able
to fudge.
And while I like everything pretty much about this API, one annoying thing here is if you check out
the response, the property names, so the setup should look familiar.
Again, even though this is external API, the idea is exactly the same, where there's going to be
an array and then each item is an object.
But then notice these property names, then it's not the end of the world.
But essentially you have this SDR and then whatever is the actual property name, not just adds a few
lines of code to our project, not the end of the world, but a little bit annoying.
And then if you want to check out the other end point we're going to use can just copy and paste the
URL.
And essentially this is info about that one single cocktail, by the way.
I think I messed that up.
This is ingredient.
Sorry, I should look for this one where you have I am some kind of value.
So this is where I'll pass in that idea.
So we're pass it down.
And of course this is going to be that one specific drink.
Again, the API name is the cocktail DB on line.
You have multiple options.
You can go free route or you can donate two dollars in Patrón.
And of course you have some additional routes and it's really cool.
You don't need to have the API.