Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,500 --> 00:00:08,210
OK, guys, welcome to the course of Lavallade Epitaph material, this is part 16 inside this video,
2
00:00:08,480 --> 00:00:11,510
Violetta Volkova Delete Epper concept.
3
00:00:11,960 --> 00:00:19,670
So if I go back to Ed in the last video we had worked over Update Epper and The Last Method and the
4
00:00:19,670 --> 00:00:26,830
last episode we will see inside this video all about this epic Anthoula, all about delete API, let's
5
00:00:26,900 --> 00:00:28,240
delete employ method.
6
00:00:29,120 --> 00:00:36,110
So what I will do simply the same we to check for that on the behalf of this employee ID the employer
7
00:00:36,110 --> 00:00:37,040
exists or not.
8
00:00:37,400 --> 00:00:41,810
If we do exist then we will delete otherwise employee not found.
9
00:00:42,530 --> 00:00:55,670
So let's say if employee will use Vehle method ID equals to ID and will use existing method.
10
00:00:56,600 --> 00:01:01,550
If an employee accessed what will do simply will delete.
11
00:01:01,700 --> 00:01:04,580
Otherwise, let's say employee not found.
12
00:01:05,830 --> 00:01:12,250
So if I go to the Upas, like for the update here, we have the employee not found, I will copy the
13
00:01:12,250 --> 00:01:15,520
same code right here inside this House floor.
14
00:01:15,580 --> 00:01:17,110
It means employee not found.
15
00:01:17,530 --> 00:01:26,680
And if employees accessed on behalf of this ID, it means we need to delete that SUHEIL employee equals
16
00:01:26,680 --> 00:01:30,340
to employee model will use find method.
17
00:01:31,790 --> 00:01:41,290
And finally, what I will do to delete this employee upset because by the help of this statement, we
18
00:01:41,290 --> 00:01:48,840
are returning our employee OPSEC on the behalf of this I.T. So simply we need to delete that Employee
19
00:01:48,840 --> 00:01:54,890
Jobs Act and finally we to create our response return response.
20
00:01:55,160 --> 00:01:56,410
It's not resolved.
21
00:01:57,100 --> 00:01:58,270
It's response.
22
00:01:59,530 --> 00:02:08,560
Jaeson passing in any lets that status equals to one and message
23
00:02:10,810 --> 00:02:20,290
employee deleted successfully and now save all these changes.
24
00:02:20,470 --> 00:02:23,830
What we are doing here simply we are checking employee accessed or not.
25
00:02:24,130 --> 00:02:31,660
If we do exist then finding the employee object and deleting here and if not accessed simply by turning
26
00:02:31,660 --> 00:02:34,180
a response that is employee not found.
27
00:02:35,260 --> 00:02:38,110
If I go back to post one, copy this.
28
00:02:38,110 --> 00:02:47,010
You are open a new type listing util to get the UI will go to FBI dot here we have delete employee and
29
00:02:47,010 --> 00:02:53,770
the request I keep in mind delete type and also we need to pass the ID means employed into the you are
30
00:02:54,910 --> 00:03:02,860
going to the post man select delete request I and the EPA routley something delete hyphen employee.
31
00:03:03,490 --> 00:03:09,840
So while calling this out if we pass it was the Tutty as we know that this tatties does not exist.
32
00:03:09,850 --> 00:03:12,280
Click on send button employee not found.
33
00:03:12,790 --> 00:03:18,160
Now suppose we want to delete this Tuddenham idea from this list from our table.
34
00:03:18,400 --> 00:03:25,840
Simply past three here with a delete request I click on send button employee, delete it successfully.
35
00:03:26,200 --> 00:03:28,930
Now if you go to the list, click on Send Button.
36
00:03:29,500 --> 00:03:34,150
And as you can see that we have already called one, two and four.
37
00:03:34,480 --> 00:03:38,020
Tuddenham Whitey is now deleted from our table.
38
00:03:39,190 --> 00:03:46,360
So this is guys, how we can walk in the lateral EPWs and inside the schools successfully.
39
00:03:46,360 --> 00:03:48,130
We have completed our first phase.
40
00:03:48,130 --> 00:03:52,660
That is normal development without any authentication.
41
00:03:53,320 --> 00:04:02,680
We have seen the overall concept, overall scenarios like creating listing, get single employed detail
42
00:04:02,890 --> 00:04:06,790
updating, as well as the delete API concept.
43
00:04:07,960 --> 00:04:12,640
Now from the next video, we will include our authentication tool.
44
00:04:12,940 --> 00:04:18,880
Either we can include JWT, Passport or Sanctum and we will implement and see that.
45
00:04:19,120 --> 00:04:26,830
How can we work with the EPA's with authentication tools and one, mooting the whole code of this first
46
00:04:26,830 --> 00:04:27,310
phase.
47
00:04:27,310 --> 00:04:32,440
What we have developed, I will include into the resource section of this lecture.
48
00:04:32,790 --> 00:04:37,390
You can download the whole source code, what we have done here from the resource.
49
00:04:38,500 --> 00:04:40,360
And also one last thing.
50
00:04:40,750 --> 00:04:43,210
If I go back to post van, go here.
51
00:04:43,210 --> 00:04:46,450
If I copy this, you are allowed back to Ed.
52
00:04:46,750 --> 00:04:48,700
Let's include the You are Laswell.
53
00:04:49,480 --> 00:04:51,430
So this is for the ad employee.
54
00:04:51,880 --> 00:04:52,990
Go to Postman.
55
00:04:53,500 --> 00:04:56,470
If I copied this, you are still here.
56
00:04:56,470 --> 00:05:05,050
We have the you are allowed to list all the employees now next here we have the single employee detail.
57
00:05:06,010 --> 00:05:06,850
Go here.
58
00:05:07,690 --> 00:05:11,350
Let's say you are a single employee detail.
59
00:05:12,310 --> 00:05:17,080
Next we have update employee so I will copy Goodhue.
60
00:05:18,040 --> 00:05:23,440
Here we have the usual and final one we have for the delete API.
61
00:05:23,440 --> 00:05:27,330
So if I will copy and paste it here.
62
00:05:28,540 --> 00:05:32,890
So from the next feed, you guys will work on the second phase of development.
63
00:05:33,130 --> 00:05:36,430
So for now, thank you for watching and have a great day.
6324
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.