Always document your APIs so that they are easy to test and so that others can understand and test them…