Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,570 --> 00:00:07,440
Guys, welcome to the course of Lavallade EPA, Daniel Pantaleo, this is partnered with 13 entities
2
00:00:07,440 --> 00:00:11,870
Feed Your Fuel to create an EPA, which will list all employees.
3
00:00:12,480 --> 00:00:19,890
So if I go back to Ed, in the last video we had created the EPA, which is a destroyer employ inside
4
00:00:19,890 --> 00:00:21,190
our employs people.
5
00:00:21,750 --> 00:00:27,450
We had covered the steps of validation data as well as sending response.
6
00:00:28,530 --> 00:00:35,040
Now at this time, we will use listing Methode, which will list all the employees what we have inside
7
00:00:35,040 --> 00:00:36,600
our database table.
8
00:00:36,990 --> 00:00:40,260
So right now we have created for DUMITRU entries.
9
00:00:40,830 --> 00:00:48,420
So if I go back to Ed in the last few, you successfully we have alluded employ model, so we will use
10
00:00:48,420 --> 00:00:51,110
Inside List employs method as well.
11
00:00:51,450 --> 00:01:00,830
So less employees equals to model called employee and will use get mattered.
12
00:01:01,320 --> 00:01:07,740
So for now if I type being tartlets, the employees save the change.
13
00:01:08,250 --> 00:01:10,110
It should be something employees.
14
00:01:10,440 --> 00:01:15,750
So copy and paste and keep in mind to actually list all the employees.
15
00:01:15,750 --> 00:01:22,910
We have the EPA out as least half of the employees, which we will request if I get a request I.
16
00:01:23,400 --> 00:01:26,430
So if I go back to post man copy this.
17
00:01:26,430 --> 00:01:28,330
Wrote Open a new tab based in.
18
00:01:29,280 --> 00:01:33,470
This time the EPA wrote we have called list hyphen employees.
19
00:01:33,480 --> 00:01:41,090
So if I copy back to Postman Again List employees here we have the Gacha Grass type.
20
00:01:41,370 --> 00:01:47,430
So when we click on this send button, as you can see that we are getting the response.
21
00:01:48,060 --> 00:01:54,240
If I am hoping this you are allowed into the browser because this is a good request, I so easily we
22
00:01:54,240 --> 00:02:01,530
can open that now here, as you can see that we are getting zero a collection object inside this collection,
23
00:02:01,530 --> 00:02:04,430
OPSEC, we are getting the Jobs Act of employee.
24
00:02:05,430 --> 00:02:07,290
So here we have the zero index.
25
00:02:08,070 --> 00:02:09,830
Next we have the first index.
26
00:02:09,840 --> 00:02:11,430
This is for the second row.
27
00:02:12,030 --> 00:02:17,670
Here we have the third index second and next we have the third instance.
28
00:02:18,360 --> 00:02:24,960
So what actually these are we are getting from zero index to third index, which indicates that we have
29
00:02:24,960 --> 00:02:27,480
total number of rules equals to four.
30
00:02:28,800 --> 00:02:35,100
So now we need to read into a proper format so that the EPS would be useful.
31
00:02:36,120 --> 00:02:45,090
So if I go back to Ed, go to API controller, so instead of Prenter, what I will do is return response
32
00:02:45,730 --> 00:02:48,060
will convert into decent format.
33
00:02:49,830 --> 00:03:00,390
A status equals to one message equals ballista listing employees.
34
00:03:01,050 --> 00:03:08,580
And also, if we want to send a custom, SCDP could also in the second value of this Tucson method,
35
00:03:08,820 --> 00:03:10,050
we can pass it here.
36
00:03:10,530 --> 00:03:15,510
So let's add that we want to send two hundred status TTP code.
37
00:03:15,780 --> 00:03:18,210
So simply I will pass 200.
38
00:03:18,510 --> 00:03:25,830
Otherwise by default it will pass the two hundred if we want something more or less typical, like five
39
00:03:25,830 --> 00:03:30,080
hundred for zero one or something else, we can put it here.
40
00:03:31,140 --> 00:03:36,540
So after doing this also we need to send us employees means this is our main data.
41
00:03:37,140 --> 00:03:43,410
Goodhue Allissa data equals to employees.
42
00:03:43,860 --> 00:03:48,180
So if you see all these changes back to Postman, click on Send Button.
43
00:03:49,350 --> 00:03:55,500
And as you can see that we are getting a proper response that is status equals to one message equal
44
00:03:55,500 --> 00:03:56,520
to listing employees.
45
00:03:56,730 --> 00:04:03,690
And here inside this data, we are getting subsect the first object we have, the first draft eval and
46
00:04:03,690 --> 00:04:04,370
so on.
47
00:04:04,980 --> 00:04:09,300
So this is all about guys listing of all employees from people.
48
00:04:10,050 --> 00:04:13,950
In the next video, we will see and discuss about more APIs.
49
00:04:13,950 --> 00:04:15,080
So far this position.
50
00:04:15,090 --> 00:04:17,370
Guys, thank you for watching and have a great day.
5035
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.