In this section, we will add binary file support settings and enable CORS for the APIs.
Select API Settings from the left menu, then click Manage media types

On Manage binary media types page:

Go back to Resources from the left menu:

On Enable CORS page:

Select /{id} resource and click Enable CORS

On Enable CORS page:

To allow front-end to use the APIs, we need to deploy them:

On Deploy API popup:

Enter stage name, e.g., staging, then click Deploy

Note the Invoke URL to call APIs

URL for List and Write APIs (GET/POST /books):

URL for Delete API (DELETE /books/{id}):

So we have finished configuring API Gateway with GET, POST, DELETE methods and enabled CORS.