1
00:00:00,420 --> 00:00:02,580
Instructor: So let's summarize this section.

2
00:00:02,580 --> 00:00:05,010
When designing the URL of your API,

3
00:00:05,010 --> 00:00:08,340
make sure it is simple, it is readable,

4
00:00:08,340 --> 00:00:11,640
it is consistent, and it is predictable.

5
00:00:11,640 --> 00:00:15,300
So if you will look at an example URL

6
00:00:15,300 --> 00:00:19,680
we can define exactly what are the parts that makes the URL.

7
00:00:19,680 --> 00:00:22,410
So, we have the API word,

8
00:00:22,410 --> 00:00:26,100
we have the version, and the entity,

9
00:00:26,100 --> 00:00:30,060
the ID parameter, the sub entity,

10
00:00:30,060 --> 00:00:32,850
and the query parameter.

11
00:00:32,850 --> 00:00:36,510
Now remember, some of these components are optional,

12
00:00:36,510 --> 00:00:39,120
namely the ID parameter, the sub entity,

13
00:00:39,120 --> 00:00:41,700
and the query parameters are all optional

14
00:00:41,700 --> 00:00:44,070
and you might not need to use them.

15
00:00:44,070 --> 00:00:45,390
But in any case,

16
00:00:45,390 --> 00:00:50,390
always make sure your URL is clear, simple, and easy to use.

