‫Hello, my friends, and welcome back to the last video in this retrofit series.
‫We will talk about the path parameters and this topic.
‫We will see it in the next applications and the next complex things that we will build with the retrofit
‫and the API calls later on.
‫So what are path parameters?
‫Path parameters are request parameters attached to the URL that point to a specific rest API resource.
‫The path parameter is separated from the URL by the forward slash and from the query parameters by the
‫question mark.
‫If you notice that this link here.
‫We can see that this is the main URL.
‫This is the base URL.
‫This is the path.
‫And this is included between the the main and the domain name, the basic URL and the question mark
‫here.
‫So you can notice that the end of the path is the question mark and the the beginning of this path.
‫Your URL is here.
‫So this is the path.
‫The path parameters define the resource location while the query parameters define sort pagination or
‫filter operations.
‫This is the query.
‫This is the query parameters that we've learned before in the previous videos.
‫We will see the and operator, the equal sign and the value.
‫Okay, so this is the query and this is the path we will see later on in the next videos that the path
‫are also included in the retrofit and we will see specific things talking about the path.
‫But I want from you to concentrate to understand that the complete URL is segmented into three main
‫parts.
‫Generally the domain name, which is the basic URL.
‫This is the path your URL.
‫And from the this is the question mark until end.
‫It's the query parameters.
‫So this is the URL in general.
‫Thanks for watching.
‫In the next videos, we will start using the retrofit and we will see the power of path parameters.
‫We will see the query parameters and.