1
00:00:00,240 --> 00:00:04,200
Instructor: Our next topic is API Documentation.

2
00:00:04,200 --> 00:00:06,870
Now, let's begin with an exam.

3
00:00:06,870 --> 00:00:09,660
Nobody likes to write documentation.

4
00:00:09,660 --> 00:00:12,427
I have yet to meet a developer that told me happily,

5
00:00:12,427 --> 00:00:14,197
"You know what I'm going to do today?

6
00:00:14,197 --> 00:00:16,350
"I'm going to write documentation."

7
00:00:16,350 --> 00:00:18,270
Yeah, it's never gonna happen.

8
00:00:18,270 --> 00:00:23,270
But even though nobody likes it, it is so important.

9
00:00:23,760 --> 00:00:28,760
Your API must be well documented and let's think why.

10
00:00:29,010 --> 00:00:30,594
So let's begin with a question.

11
00:00:30,594 --> 00:00:32,280
In your opinion

12
00:00:32,280 --> 00:00:35,823
how many developers will use an undocumented API?

13
00:00:36,870 --> 00:00:41,117
So think about it for a minute and let's go to the answer.

14
00:00:41,117 --> 00:00:46,117
So the answer for this question is probably this.

15
00:00:46,200 --> 00:00:47,460
No one.

16
00:00:47,460 --> 00:00:51,180
Nobody is going to use an undocumented API,

17
00:00:51,180 --> 00:00:53,910
unless of course you force the developers to do it.

18
00:00:53,910 --> 00:00:56,580
But most of us are not in this position.

19
00:00:56,580 --> 00:01:00,330
And in general, no matter how good your API is,

20
00:01:00,330 --> 00:01:01,797
how sophisticated it is,

21
00:01:01,797 --> 00:01:04,290
and how great the execution is,

22
00:01:04,290 --> 00:01:06,300
if it is not documented,

23
00:01:06,300 --> 00:01:09,450
then simply no one will use it.

24
00:01:09,450 --> 00:01:12,780
So when talking about the importance of the documentation,

25
00:01:12,780 --> 00:01:15,630
of course it is crucial for the API usage.

26
00:01:15,630 --> 00:01:19,620
You want developers to use the API, then document it.

27
00:01:19,620 --> 00:01:21,270
In addition, the documentation

28
00:01:21,270 --> 00:01:23,760
will make it much easier to use.

29
00:01:23,760 --> 00:01:24,630
And if you remember,

30
00:01:24,630 --> 00:01:27,360
one of the key factors for making other developers

31
00:01:27,360 --> 00:01:30,925
to use your API is to make it easier to use it.

32
00:01:30,925 --> 00:01:34,109
Good documentation attracts developers.

33
00:01:34,109 --> 00:01:37,500
If developers sees that the documentation

34
00:01:37,500 --> 00:01:39,660
is comprehensive and detailed

35
00:01:39,660 --> 00:01:43,650
and really helps them to understand what the API is doing,

36
00:01:43,650 --> 00:01:45,780
then they will come in droves.

37
00:01:45,780 --> 00:01:49,230
In addition, good documentation improves your image.

38
00:01:49,230 --> 00:01:51,211
Once the documentation looks professional

39
00:01:51,211 --> 00:01:53,820
and provides answer to all the questions,

40
00:01:53,820 --> 00:01:55,710
then the typical developer will assume

41
00:01:55,710 --> 00:01:59,160
that the developer behind the API is also professional

42
00:01:59,160 --> 00:02:01,533
and is probably someone he should work with.

