Create methods

Create list API

  1. Click /books, then select Create method CreateListAPI

  2. In the Method detail

    • Select GET method
    • Select Lambda Function for Integration type
    • Check to Use Lambda Proxy integration
    • Enter Lambda function name to be integrated: books_list
    • Click Save CreateListAPI
  3. Click Create method CreateListAPI

Create write API

  1. Click /books, then select Create method CreateListAPI
  2. In the Method detail
    • Select GET method
    • Select Lambda Function for Integration type
    • Check to Use Lambda Proxy integration
    • Enter Lambda function name to be integrated: books_list
    • Click Save CreateListAPI
  3. Click Create method CreateListAPI

Create delete API

  1. Click /books, then select Create Resource CreateListAPI

  2. For Create Resource

    • Enter {id} for Resource name pattern
    • Click Create Resource CreateListAPI
  3. Click /{id}, then select Create method CreateListAPI

  4. For Method detail

    • Select method DELETE
    • Select Lambda Function for Integration type
    • Check to Use Lambda Proxy integration
    • Enter Lambda function name to be integrated: book_delete
    • Click Save CreateListAPI
  5. Click Create method CreateListAPI So, we have created the APIs that interact with Lambda functions.