What type of testing will we do?
Every type of testing its own importance, especially unit testing. However, we will mainly do API testing that will be testing our RESTful web service endpoints. It never means that unit testing is less important, it is just that we are mainly focusing on API testing in this chapter because the book is focused on RESTful web services. In fact, testing is a big topic and you will be able to see complete books on testing and TDD.
Note
Nowadays, BDD (Behavior-driven Development) is a more popular term. It is not completely different than TDD. It is just a different way of stating test cases. In fact, in BDD, there are no test cases instead there are specs. They serve the same purpose but BDD has a more friendly way to address the problem that is by stating specs and implementing them and that's how TDD works. So TDD and BDD are not different, just a different way to address the same problem.
We can perform API testing in both functional and acceptance testing...