What exactly needs to verify in API testing?

In API testing, we send a request to API with the known data and then analysis the response.

  • We will verify the accuracy of the data.
  • Will see the HTTP status code.
  • We will see the response time.
  • Error codes in case API returns any errors.
  • Authorization would be check.
  • Non-Functional testing such as performance testing, security testing.