1
00:00:00,360 --> 00:00:06,689
Not bad, not bad ones, we have the basic structure in place, and once we have fixed all my silly

2
00:00:06,689 --> 00:00:09,180
little bugs, now let's switch gears.

3
00:00:09,720 --> 00:00:11,730
Navigate here the postman.

4
00:00:12,000 --> 00:00:13,800
I'm going to set up a new collection.

5
00:00:14,310 --> 00:00:18,180
I'll call this zero seven file upload.

6
00:00:18,570 --> 00:00:26,520
So bingo here with rename, we're looking for zero seven file upload.

7
00:00:26,970 --> 00:00:30,030
And essentially in here we'll have three routes.

8
00:00:30,480 --> 00:00:39,000
We have one for image upload, one for product, the creation of the product and line to see all the

9
00:00:39,000 --> 00:00:39,510
product.

10
00:00:39,990 --> 00:00:41,160
So let's go here.

11
00:00:41,430 --> 00:00:44,970
And let's just say that there's going to be a new route.

12
00:00:44,970 --> 00:00:46,710
It's going to be a post child.

13
00:00:47,040 --> 00:00:52,740
So both for the image upload and the creation of the product we'll use post.

14
00:00:53,160 --> 00:00:57,780
And as far as the path, well, remember, we have the URL, correct.

15
00:00:58,290 --> 00:01:05,160
Then we have forward slash products and let's start with creating of the product.

16
00:01:05,459 --> 00:01:08,940
Once we send, we should say, create product.

17
00:01:09,770 --> 00:01:17,710
And I can say that around, so let's go save our house and we'll go with create product and it's going

18
00:01:17,710 --> 00:01:18,880
to be in the file upload.

19
00:01:18,880 --> 00:01:20,600
Let's save it there then.

20
00:01:20,680 --> 00:01:22,550
Let's also see all the products.

21
00:01:22,930 --> 00:01:25,570
So this is going to be the case where the method is different.

22
00:01:26,020 --> 00:01:30,030
So let me just maybe duplicate this one in the postman.

23
00:01:30,040 --> 00:01:35,810
You can also duplicate basically this is going to be the route for getting all the products.

24
00:01:36,100 --> 00:01:38,350
So I'll also need to change the method around.

25
00:01:38,350 --> 00:01:40,340
So get our products.

26
00:01:40,360 --> 00:01:41,230
That's the name.

27
00:01:41,860 --> 00:01:48,460
And then as far as the method will go, we get so go and get the save.

28
00:01:48,460 --> 00:01:52,360
It will send that and we should see a list of products.

29
00:01:52,820 --> 00:01:57,460
And I also want to set up one for the image for the image upload.

30
00:01:57,820 --> 00:02:04,150
Then we can do the same thing where we just duplicate the thing and we'll just rename it, we'll say

31
00:02:04,960 --> 00:02:07,900
upload, upload image.

32
00:02:08,150 --> 00:02:09,310
It's not going to be a good route.

33
00:02:09,550 --> 00:02:10,930
So let me navigate here.

34
00:02:11,240 --> 00:02:12,850
I'm going to close these ones for now.

35
00:02:13,120 --> 00:02:17,620
And as far as upload will go with Post and remember the path.

36
00:02:18,410 --> 00:02:25,400
If I take a look at the roots, I can see that I have product and then forward slash uploads, so I

37
00:02:25,400 --> 00:02:34,220
just add here uploads and send it and we should see the string of upload product image.

38
00:02:34,730 --> 00:02:37,200
That should be the basic setup for the postman.

39
00:02:37,520 --> 00:02:42,260
So now I can finally focus on uploading the images.

