1
00:00:00,150 --> 00:00:01,706
Instructor: The next part of the URL

2
00:00:01,706 --> 00:00:04,743
after the domain name is the API word.

3
00:00:05,970 --> 00:00:09,600
So, if the domain name does not include API,

4
00:00:09,600 --> 00:00:11,160
like in our case with Beeceptor,

5
00:00:11,160 --> 00:00:16,050
then the API word comes now like this.

6
00:00:16,050 --> 00:00:17,640
So, take a look at this domain name

7
00:00:17,640 --> 00:00:19,680
and you can see that the domain name itself

8
00:00:19,680 --> 00:00:22,560
does not contain the word API.

9
00:00:22,560 --> 00:00:26,370
And it comes right after that, after the forward slash.

10
00:00:26,370 --> 00:00:29,700
So, the role of the API word is to emphasize

11
00:00:29,700 --> 00:00:34,140
that this URL is for the API and not for the website,

12
00:00:34,140 --> 00:00:35,760
because there are many websites

13
00:00:35,760 --> 00:00:37,800
that have a visual representation,

14
00:00:37,800 --> 00:00:41,010
like almost every other website in the world,

15
00:00:41,010 --> 00:00:43,590
and also an API representation.

16
00:00:43,590 --> 00:00:47,190
And the API in the URL notifies the developer

17
00:00:47,190 --> 00:00:51,189
that this is where the API representation is found.

18
00:00:51,189 --> 00:00:55,560
Now, the API can also be part of the domain name itself,

19
00:00:55,560 --> 00:00:58,380
and it doesn't have to be after the domain name.

20
00:00:58,380 --> 00:01:01,410
A good example for this is with Google APIs.

21
00:01:01,410 --> 00:01:03,720
So, if you take a look at this URL,

22
00:01:03,720 --> 00:01:07,650
you see that the word API is part of the domain name,

23
00:01:07,650 --> 00:01:09,720
part of Google APIs.

24
00:01:09,720 --> 00:01:12,480
So, this is definitely also a good choice

25
00:01:12,480 --> 00:01:14,430
and you can use it.

26
00:01:14,430 --> 00:01:19,430
So, let's continue to build our sample URL using Beeceptor.

27
00:01:19,890 --> 00:01:23,370
So, we will click the mocking rules once again

28
00:01:23,370 --> 00:01:26,010
and let's create a new rule,

29
00:01:26,010 --> 00:01:28,470
and let's go to these textbooks

30
00:01:28,470 --> 00:01:30,930
which contains the URL of the API.

31
00:01:30,930 --> 00:01:33,150
So, according to what we just said,

32
00:01:33,150 --> 00:01:38,150
the first part of the URL here should be the word API.

33
00:01:38,340 --> 00:01:39,173
Great.

34
00:01:39,173 --> 00:01:41,880
Don't click Save Rule because we will continue

35
00:01:41,880 --> 00:01:46,260
walking on this URL during this section.

36
00:01:46,260 --> 00:01:48,870
So, great, now we have the API word

37
00:01:48,870 --> 00:01:52,173
and let's continue to the next part of the URL.

