Testing Invoice Star Status Update

Step 1: Create Request

  1. In the InvoiceGetAPI-Tests Collection, click the "+" button to create a new request.

Update Invoice Starred

  1. Name the request: Update Invoice Starred.

Update Invoice Starred

  1. Select the PATCH method.

Update Invoice Starred

  1. Go to API Gateway and select the API: GetInvoiceAPI.

  2. Navigate to the Stages section.

  3. Click the "+" button to reveal the /invoice/starred/{id} endpoint path as shown below:

Update Invoice Starred

  1. Select the PATCH method and copy the Invoke URL.

Update Invoice Starred

  1. Paste the Invoke URL into Postman as follows:

Update Invoice Starred

  1. Replace {id} in the API endpoint with an actual Invoice ID from DynamoDB:
https://x4uqolxky6.execute-api.us-east-1.amazonaws.com/dev/invoice/starred/<InvoiceId_from_DynamoDB>

Update Invoice Starred

  1. Go to the Body tab → Select raw → Choose JSON.

Update Invoice Starred

  1. Paste the following JSON code into Postman to mark the invoice:
{
    "starred": true
}

Update Invoice Starred

  1. Click the Send button to view results.

Update Invoice Starred

  1. The response will appear as follows:

Update Invoice Starred

  1. Check the Starred field in DynamoDB to verify the update.

Update Invoice Starred