1
00:00:00,270 --> 00:00:06,450
And once we have the basic structure in place now, let's navigate through the postman and start setting

2
00:00:06,450 --> 00:00:12,750
up of the routes because of course, we want to test everything, so we'll have to use Faustman quite

3
00:00:12,750 --> 00:00:17,390
extensively now for this project since we have a local host.

4
00:00:17,400 --> 00:00:18,300
Five thousand.

5
00:00:18,580 --> 00:00:21,990
Remember, in NAB Dress, we have 5000 instead of 3000.

6
00:00:22,500 --> 00:00:27,060
And if you have been following along and have exactly the same setup.

7
00:00:28,050 --> 00:00:32,689
In the post, man, you should have this URL for 30000, correct.

8
00:00:33,240 --> 00:00:35,070
So what are we going to change around right now?

9
00:00:35,100 --> 00:00:39,000
I'll show you how we can set up an environment in the post, postman.

10
00:00:39,660 --> 00:00:43,950
So everything we have been setting so far are global variables, correct?

11
00:00:44,400 --> 00:00:48,630
Whether that was URL, production, URL, as well as the access token.

12
00:00:48,630 --> 00:00:50,130
Now in this case, what we're going to do.

13
00:00:50,490 --> 00:00:52,200
We're going to create an environment.

14
00:00:52,650 --> 00:00:56,610
And this is very useful if you have some different data.

15
00:00:56,610 --> 00:01:00,990
For example, now local host 5000, that's going to be our URL.

16
00:01:01,410 --> 00:01:06,780
So that way, I don't have to go back and start changing everything around here.

17
00:01:07,050 --> 00:01:13,560
You can just set up the environment with different variable and just use it there in this case, localhost

18
00:01:13,560 --> 00:01:14,190
5000.

19
00:01:14,640 --> 00:01:18,720
Hopefully all of this makes sense, and we have no environment.

20
00:01:19,620 --> 00:01:22,040
So let's change that around here.

21
00:01:22,350 --> 00:01:22,710
I'm sorry.

22
00:01:22,740 --> 00:01:25,170
Let's click on the I we have environment.

23
00:01:25,470 --> 00:01:28,950
Then we click Add, and then we just need to come up with a name.

24
00:01:29,610 --> 00:01:34,130
So, my gosh, I'm going to call this e-commerce and dev.

25
00:01:34,350 --> 00:01:35,790
So that's going to be my environment.

26
00:01:36,210 --> 00:01:40,930
And as a side note, all of these collections, yes, there's a project that we're going to work on.

27
00:01:40,950 --> 00:01:43,620
So while I was working on them, I'll send them up.

28
00:01:44,100 --> 00:01:47,880
As you can see, I just named them Devon now set up proper collection.

29
00:01:48,330 --> 00:01:49,290
So let's go over here.

30
00:01:49,350 --> 00:01:58,230
Let's say that it's going to be done and or let's not call this, then let's just say Dev, environment

31
00:01:58,230 --> 00:01:58,590
dev.

32
00:01:59,690 --> 00:02:00,610
Environment.

33
00:02:01,610 --> 00:02:02,770
Let's set it up here.

34
00:02:03,830 --> 00:02:08,449
And once we have a process in place, then we can add a value here.

35
00:02:09,240 --> 00:02:15,290
Let's call this URL and just navigate through the browser because it's going to be much faster if I

36
00:02:15,290 --> 00:02:16,010
do it that way.

37
00:02:16,580 --> 00:02:18,440
I just look for a local host.

38
00:02:18,500 --> 00:02:19,970
Five thousand.

39
00:02:20,510 --> 00:02:22,190
That's going to be my e-commerce API.

40
00:02:22,730 --> 00:02:28,190
And then I'm going to go with API and that version one now in the browser.

41
00:02:28,190 --> 00:02:29,990
Of course, I get proof does not exist.

42
00:02:30,650 --> 00:02:33,170
But what I'm looking for here is the value, of course.

43
00:02:33,320 --> 00:02:35,600
So copy and paste, same over here.

44
00:02:36,080 --> 00:02:37,290
And then I'll say it.

45
00:02:37,850 --> 00:02:40,460
So that way you can set up multiple environments.

46
00:02:40,790 --> 00:02:41,600
Let's say one.

47
00:02:42,510 --> 00:02:46,500
He's going to be for three thousand and then this is going to be for a local host.

48
00:02:46,650 --> 00:02:47,420
Five thousand.

49
00:02:47,910 --> 00:02:55,180
After that, we want to create a new collection and in this case, I'm going to call this 10 year commercial.

50
00:02:55,200 --> 00:02:55,890
It's got 10.

51
00:02:57,030 --> 00:03:04,550
E-commerce here and on the side of it would set up these folders so you can see that we'll have user

52
00:03:04,550 --> 00:03:07,070
product off review and order.

53
00:03:07,160 --> 00:03:10,970
Now if you don't want to set all of them, you can just start with off.

54
00:03:12,090 --> 00:03:14,820
Let's set it up here off rename.

55
00:03:15,800 --> 00:03:19,010
Let's go with off and in here, we'll have three routes.

56
00:03:19,730 --> 00:03:20,810
So what are we can do?

57
00:03:21,080 --> 00:03:24,500
We're going to add a request here and this is going to be a get request.

58
00:03:24,510 --> 00:03:28,680
So let's right away and go for logout logout user.

59
00:03:29,060 --> 00:03:32,430
And we're looking for the URL, but we want to change the environment.

60
00:03:32,430 --> 00:03:36,080
So now we want to go to that dev environment, correct?

61
00:03:36,710 --> 00:03:38,390
So now go here.

62
00:03:39,530 --> 00:03:46,480
And now the Earl is going to be that 5000, so let's set it up, Earl Brown forward slash off and then

63
00:03:46,500 --> 00:03:48,680
logout logout.

64
00:03:49,780 --> 00:03:54,370
And let's send it, and we should get back, log out, yours are awesome.

65
00:03:54,520 --> 00:04:00,520
That's the first round and let me say it, an hour move, some of the established because it's getting

66
00:04:00,520 --> 00:04:01,700
quite busy over here.

67
00:04:01,720 --> 00:04:05,110
So me a moment, I might just go with that request.

68
00:04:05,500 --> 00:04:09,190
This is going to be a post request again, the same URL.

69
00:04:10,170 --> 00:04:15,630
In this case, it's going to be 5000 that off and on go for register.

70
00:04:16,630 --> 00:04:17,500
Register here.

71
00:04:18,550 --> 00:04:23,800
Now, we're not sending anything, but since the method is correct, we get back registered user awesome.

72
00:04:24,010 --> 00:04:25,630
That means that everything is working.

73
00:04:26,200 --> 00:04:29,090
And lastly, we want to come up with one more out.

74
00:04:29,680 --> 00:04:32,260
This is going to be posted out again.

75
00:04:32,470 --> 00:04:35,260
We're looking for the login in this case.

76
00:04:35,620 --> 00:04:36,700
So let's say off.

77
00:04:37,590 --> 00:04:42,840
And logging, and once her son, we get back logging user, let's say it.

78
00:04:43,330 --> 00:04:45,720
And let's just give it a proper name.

79
00:04:46,060 --> 00:04:46,890
So logging.

80
00:04:48,060 --> 00:04:53,890
User and since I have so many collections, I need to make sure that I don't make any mistakes, I'm

81
00:04:53,990 --> 00:04:56,240
working for off I save.

82
00:04:56,350 --> 00:05:02,690
And if you get back same results, we're in good shape and we can proceed to the next task.

