How to test API endpoints

In the chapter Unit Tests in Serverless there are good examples on how to test the Infrastructure and the Business Logic of lambda functions.

But what is the best practice to test API endpoints?

I would like to write tests like “user makes API call to create some notes” and then “user makes API call to retrieves these notes”