From the course: API Testing Foundations

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

Testing DELETE calls

Testing DELETE calls

- [Narrator] Delete calls are pretty self-explanatory. They allow you to delete existing resources from the server. As you can imagine, there are many things you want to carefully test when it comes to deleting things. You don't want to delete the wrong things. We want to make sure that we have all the right checks in place to prevent things from being deleted that should not be. This can take the form of authentication and authorization. In other words, making sure you can't delete other users' content for example. Or making sure that only users with certain permission levels can delete things. It can also take the form of data types. Perhaps only certain things on your server can be deleted. You may have shared resources that you don't want to allow people to delete or you might not allow deleting of an object until its child objects have been removed. Alright, let's take a look at some examples. For this first example…

Contents