WEBVTT

00:01.760 --> 00:03.160
Hi everyone.

00:03.480 --> 00:08.840
After we already have a boss schema.

00:11.200 --> 00:14.240
We need to create the bot.

00:14.560 --> 00:16.800
Okay, let's write the boss of it.

00:17.840 --> 00:21.240
But before that, I think I can boost one more property.

00:21.800 --> 00:26.800
Okay, right here we will put groups color.

00:27.440 --> 00:28.040
Okay.

00:28.800 --> 00:32.200
It similar with five books.

00:33.040 --> 00:33.560
Okay.

00:34.080 --> 00:38.720
We can ask the background color of the text.

00:39.120 --> 00:39.600
Right.

00:41.920 --> 00:45.720
So and let me show you.

00:52.160 --> 00:54.760
Right here we need to create a little.

00:58.640 --> 01:05.010
In the background color we can put Some value lies.

01:06.010 --> 01:07.170
Hexadecimal.

01:07.370 --> 01:08.570
Okay, this is why.

01:08.570 --> 01:12.090
Colors and inside the box video.

01:12.130 --> 01:16.330
Let me show you further who we need.

01:16.370 --> 01:17.730
The background color.

01:18.490 --> 01:18.970
Right.

01:19.770 --> 01:21.130
And we need content.

01:24.930 --> 01:26.810
And we also need the privacy.

01:30.850 --> 01:31.370
Okay.

01:31.570 --> 01:33.410
Which is the media URL.

01:33.450 --> 01:37.370
I will show you how we can handle that in later.

01:38.690 --> 01:39.050
Okay.

01:39.090 --> 01:42.410
And we need to add a little bit of validation.

01:43.930 --> 01:49.850
Well in here in the background color it can be optional right.

01:50.210 --> 01:56.090
Because we already added this file okay.

01:56.130 --> 02:05.140
And we need to add one more check for the light is green but a string is not so good in this sky because

02:05.140 --> 02:10.220
the background color only accept the hexadecimal colors.

02:10.260 --> 02:10.780
Right.

02:11.220 --> 02:15.020
Let me, uh, check class validator.

02:22.500 --> 02:24.700
Let's short for class validator.

02:24.980 --> 02:33.500
And if you shop for the color you will see it has one more check for the color.

02:33.540 --> 02:33.940
Right.

02:33.940 --> 02:41.020
We can use that hexadecimal color right here.

02:44.540 --> 02:51.460
And with the content we will use a not empty.

02:51.980 --> 02:52.500
Okay.

02:52.540 --> 02:54.500
This field will be required.

02:55.300 --> 02:57.220
And is.

03:04.360 --> 03:05.320
This spring.

03:06.440 --> 03:09.880
Rye and privacy can be optional.

03:17.600 --> 03:18.400
And.

03:31.080 --> 03:34.320
We can boost a and over here.

03:36.880 --> 03:38.840
Right is a num.

03:42.960 --> 03:43.800
Let me say.

04:07.690 --> 04:15.210
Or actually, we can use the ease in right here and accept node here.

04:15.890 --> 04:19.130
Let me show you this in.

04:20.050 --> 04:28.370
And we need to boost the array with public, private and friends.

04:28.770 --> 04:34.090
So there is only accept this thing and we can use I privacy.

04:34.930 --> 04:35.450
Okay.

04:39.170 --> 04:42.290
That's about the boss little.

04:43.810 --> 04:47.330
And let's continue with that.

04:49.450 --> 04:50.890
Inside the controllers.

04:52.210 --> 04:53.970
We have a create boss.

04:54.130 --> 05:01.770
We don't need to add rows over here because everyone can create boss, right?

05:08.020 --> 05:11.580
Let me go to the boss of it right here.

05:16.780 --> 05:17.260
Okay.

05:17.260 --> 05:22.500
In order to create a boss, we can put the roster like.

05:37.180 --> 05:37.540
This.

05:41.060 --> 05:43.820
And I will return new boss.

05:44.260 --> 05:44.660
Boss.

05:44.660 --> 05:45.180
Save!

05:46.340 --> 05:48.020
Now let's see how it works.

06:01.260 --> 06:02.380
Is there a body?

06:07.990 --> 06:09.590
BlackBerry ten.

06:18.630 --> 06:19.230
And.

06:22.190 --> 06:28.590
Okay, I think we we just missed the content, and we need the authentication.

06:45.070 --> 06:45.750
Let me say.

06:50.870 --> 06:57.270
Muscle we removes the we we need to make sure this is a valid JSON.

06:58.470 --> 07:06.630
Let me say okay we already created the new boss content with privacy and some created art.

07:06.670 --> 07:07.550
Updated art.

07:07.590 --> 07:08.070
Right.

07:09.290 --> 07:09.810
So.

07:10.730 --> 07:12.850
And let me show you.

07:14.010 --> 07:15.090
These are removable.

07:57.090 --> 07:57.770
Okay.

07:57.930 --> 08:00.690
It already creates the news.

08:00.890 --> 08:05.730
But let me just try to drop everything.

08:09.900 --> 08:10.420
Okay.

08:10.700 --> 08:13.620
Right here, let me put one more thing.

08:13.620 --> 08:13.980
Really.

08:13.980 --> 08:14.700
Privacy.

08:15.420 --> 08:20.460
For example, if I boost in release and background color.

08:23.020 --> 08:24.460
Will be invalid.

08:24.460 --> 08:37.060
Also, let me say now it's background color must be a hexadecimal color and privacy must be the value

08:37.300 --> 08:37.980
right here.

08:38.340 --> 08:39.100
Very cool.

08:39.100 --> 08:39.580
Right.

08:42.540 --> 08:44.340
Let me boost the privacy.

08:46.980 --> 08:48.380
And the background color.

08:51.060 --> 08:53.060
Let me say okay.

08:53.060 --> 08:57.380
It's already working as we expected right.

08:58.380 --> 09:05.180
So and we need to create a respondto also.

09:05.540 --> 09:07.180
So I will leave that job for you.

09:07.220 --> 09:07.540
Okay.

09:07.580 --> 09:10.020
In the next video I will do that.
