From the course: API Testing Foundations

Unlock the full course today

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

Testing POST calls

Testing POST calls

- [Instructor] POST calls give us a whole new set of testing challenges. We're now giving the API users the ability to create things in our service. And so we need to make sure that they cannot do so in a harmful way. There are two main ways that people can harm our app through bad POST calls. The first is malicious users. We'll talk about security testing your API later in the course. The second way though is users accidentally doing the wrong thing. For example, what happens if they send the data in the wrong format or try to overwrite data that's already in the system? The same heuristics of consistency and surprise that I talked about in testing GET requests apply here. With POST requests we also need to think carefully about the data inputs. In some ways, testing a POST call is similar to testing input fields in a graphical user interface. We need to think about things like the boundaries of the data, what data…

Contents