1
00:00:00,360 --> 00:00:02,358
Instructor: Our next web API is REST

2
00:00:02,358 --> 00:00:05,550
which is the star of this course, actually.

3
00:00:05,550 --> 00:00:06,570
So, what is REST?

4
00:00:06,570 --> 00:00:08,042
REST is also an acronym.

5
00:00:08,042 --> 00:00:12,990
In this case, it stands for Representational State Transfer.

6
00:00:12,990 --> 00:00:15,480
Yes, that is quite complicated, I know,

7
00:00:15,480 --> 00:00:17,310
and we'll explain it later.

8
00:00:17,310 --> 00:00:21,870
REST was designed in the year 2000 by Roy Fielding

9
00:00:21,870 --> 00:00:25,260
and it is based on URL + JSON.

10
00:00:25,260 --> 00:00:29,040
You won't see here XML, or complex envelopes

11
00:00:29,040 --> 00:00:30,240
or anything like it.

12
00:00:30,240 --> 00:00:31,620
It is quite simple.

13
00:00:31,620 --> 00:00:34,323
You send to URL, and you get back JSON.

14
00:00:35,580 --> 00:00:38,100
REST is a message style protocol,

15
00:00:38,100 --> 00:00:42,480
meaning, we are not calling a specific method or procedure.

16
00:00:42,480 --> 00:00:46,440
We are just calling a URL and passing him message.

17
00:00:46,440 --> 00:00:48,840
The URL endpoint should be able to understand

18
00:00:48,840 --> 00:00:50,400
what to do with this message

19
00:00:50,400 --> 00:00:53,793
and then pass it along and return us the response.

20
00:00:54,750 --> 00:00:55,920
As mentioned earlier,

21
00:00:55,920 --> 00:00:59,040
REST is the De Facto Standard for APIs.

22
00:00:59,040 --> 00:01:02,130
Almost all the major websites today

23
00:01:02,130 --> 00:01:05,550
expose REST API and you are expected to use it.

24
00:01:05,550 --> 00:01:07,890
And, of course, we'll talk about it a lot later.

25
00:01:07,890 --> 00:01:09,213
So, we'll go on.

