1
00:00:05,890 --> 00:00:08,620
So after opening Posman, I will go to import.

2
00:00:10,040 --> 00:00:15,500
And are two files that need importing, the first one is the collection, the cars, S.P.I, and the

3
00:00:15,500 --> 00:00:18,980
second one is the environment, and then open them both.

4
00:00:20,170 --> 00:00:23,240
And men will report that both have been imported.

5
00:00:23,730 --> 00:00:27,570
You will see here under collections that you will have a new collection.

6
00:00:27,580 --> 00:00:28,980
It's called the Castle API.

7
00:00:29,530 --> 00:00:33,190
In addition, under environments, you'll have to localhost the environment.

8
00:00:34,310 --> 00:00:39,110
Only to select the ogles, because that will add some variables that you will need inside the collection.

9
00:00:39,920 --> 00:00:47,460
I've started a collection in multiple folders, and the first one is C, are you D, which stands for

10
00:00:47,480 --> 00:00:50,120
creator iterative update and Delete.

11
00:00:50,840 --> 00:00:57,410
So the first end point that I have is simply using the basic URL, which in our case is localhost and

12
00:00:57,410 --> 00:01:01,070
a specific board, then using the car's endpoint.

13
00:01:01,430 --> 00:01:08,450
If I hit a send button, you will see here in the response part a decent response with a list of cars

14
00:01:08,450 --> 00:01:09,820
that I have in the database.

15
00:01:10,640 --> 00:01:12,560
Curse itself is pretty simple.

16
00:01:12,560 --> 00:01:15,530
It has an I.D., it has a manufacturer model.

17
00:01:15,950 --> 00:01:22,910
And here it was built pretty, pretty easy initially with another end point, I can add a car to the

18
00:01:22,910 --> 00:01:26,780
list and you'll see here in the by the request can add another car.

19
00:01:28,560 --> 00:01:31,740
This will get the new it will be added to the database.

20
00:01:33,030 --> 00:01:38,910
Going back to get old cars, if I hit this again, we'll see here down now, the list contains an additional

21
00:01:38,910 --> 00:01:39,220
car.

22
00:01:40,140 --> 00:01:43,590
This is an entire workflow that has been implemented in the API.

23
00:01:43,590 --> 00:01:48,920
So you can get all the cars, you can add a new car, you can get a single car if you want to.

24
00:01:49,800 --> 00:01:53,760
And you can, of course, delete the car as soon as you don't need it anymore.

25
00:01:55,440 --> 00:02:01,470
And points that are available is one for statistics, for for example, based on what's available in

26
00:02:01,470 --> 00:02:07,830
the database, this can calculate how many vehicles are there and what's the age, the average age of

27
00:02:07,830 --> 00:02:08,449
the vehicles.

28
00:02:09,789 --> 00:02:16,650
Finally, there are some health and points, for example, this end point, which is actuators slash

29
00:02:16,780 --> 00:02:17,230
health.

30
00:02:18,510 --> 00:02:23,610
We just say if the service is up, if everything is sort of like running, if the application has been

31
00:02:23,610 --> 00:02:27,040
stopped, the quick and easy way to check if everything's OK.

32
00:02:27,630 --> 00:02:29,480
So this is what the application does.

33
00:02:29,490 --> 00:02:36,870
It just exposes an API, gives Jason responses of practically raw data from the database and allows

34
00:02:36,870 --> 00:02:42,270
other applications that have not been built yet to use this data to displayed in the nice format.

