Given I set the request body with:

This step definition is used to set the request body with key–value pairs in a table. It’s an easier and cleaner way to build JSON request data without writing raw JSON manually.

Given I set the request body with:$

This tells the test to build the request body from the rows in the table.

 

Example: 

Given I set the request body with:
      | name  | John Doe           |
      | email | john@example.com   |
      | age   | 30                 |