1
00:00:03,150 --> 00:00:06,750
In this video, I'll give you the task for today's exercise.

2
00:00:06,750 --> 00:00:12,600
And the task consists of creating a new app and that will be an API.

3
00:00:12,630 --> 00:00:16,440
So you need to build an API as part of this exercise.

4
00:00:16,470 --> 00:00:24,960
Now, before I explain you the exact task for today, let me demonstrate you the API that you need to

5
00:00:24,960 --> 00:00:25,500
build.

6
00:00:27,490 --> 00:00:28,930
So this is how it works.

7
00:00:29,260 --> 00:00:30,490
This API.

8
00:00:31,440 --> 00:00:34,890
Returns the definition of English words.

9
00:00:35,760 --> 00:00:44,490
For example, when the user enters the domain slash API slash v one and then they enter a word such

10
00:00:44,490 --> 00:00:45,450
as pillow.

11
00:00:45,780 --> 00:00:48,180
They get this dictionary.

12
00:00:50,120 --> 00:00:58,220
So the dictionary should return the definition of the word pillow in this case and also the word itself.

13
00:00:59,600 --> 00:01:06,050
Let's try in other words, let's say sun again, we get the definition.

14
00:01:06,050 --> 00:01:08,750
So that's the key definition and the value.

15
00:01:09,710 --> 00:01:14,960
In this case, we have multiple values, but it's still the same string.

16
00:01:14,960 --> 00:01:17,870
So sun has multiple meanings.

17
00:01:19,430 --> 00:01:22,550
You have meaning one up to here.

18
00:01:23,060 --> 00:01:28,760
And then we have this backslash and then meaning two up to here.

19
00:01:29,740 --> 00:01:31,990
But it's still one string.

20
00:01:33,960 --> 00:01:40,320
And then again we have the word key and its value son, which is the word that the user entered.

21
00:01:40,890 --> 00:01:50,520
So any word that the users enter here as part of the URL will be sent to your program and your program

22
00:01:50,520 --> 00:01:52,500
will return its definition here.

23
00:01:52,680 --> 00:01:53,910
Now this.

24
00:01:55,640 --> 00:01:57,920
Sides if you visit the home page.

25
00:01:59,810 --> 00:02:01,490
Should also have.

26
00:02:02,420 --> 00:02:05,690
A basic home page which could look like this.

27
00:02:07,180 --> 00:02:13,870
So basically you give the format to the users and an example of a URL request.

28
00:02:13,870 --> 00:02:16,570
So basically some simple documentation.

29
00:02:18,750 --> 00:02:25,380
So that's the final program that you build and you'll build it across two days starting today and also

30
00:02:25,380 --> 00:02:26,020
tomorrow.

31
00:02:26,640 --> 00:02:32,490
So the task for today, your task is to create this home page.

32
00:02:33,810 --> 00:02:45,120
And also when the users enters a world such as Sun, for example, what you should return as part of

33
00:02:45,120 --> 00:02:50,730
the definition here is not the definition itself, but simply.

34
00:02:51,870 --> 00:02:53,010
Return.

35
00:02:55,520 --> 00:02:59,900
The same word that the user entered here, but in capital letters.

36
00:03:01,250 --> 00:03:03,770
So your output should look something like this.

37
00:03:03,980 --> 00:03:05,480
Just for today.

38
00:03:05,750 --> 00:03:08,270
So instead of the actual definition, just.

39
00:03:09,270 --> 00:03:15,180
Get the user's words and return its uppercase version like this.

40
00:03:17,380 --> 00:03:19,830
So that's just to take things step by step.

41
00:03:19,840 --> 00:03:25,000
So tomorrow I'll give you the actual data set which has all the words and the definitions.

42
00:03:25,000 --> 00:03:32,860
So these are CSV data and then you can simply implement the actual data to make the final lab.

43
00:03:32,860 --> 00:03:37,390
But for today, two tasks the home page and this.

44
00:03:38,680 --> 00:03:42,940
Kind of output for the part of the API.

45
00:03:43,780 --> 00:03:44,050
Yeah.

46
00:03:44,080 --> 00:03:44,860
Good luck with that.

