Doing basic requests
First, we'll start with a simple test to get a JWT, which we'll then store so that we can use it in upcoming tests. Open the Postman application and click on New to create a request. Give it a name and a description, and either select or create a collection or folder to save it. Don't worry too much about the actual placement; you'll be able to move requests around, edit them, and more.
Then, to get a token, we need a POST, so set the method appropriately. Select the BODY tab, pick the x-www-form-urlencoded option, and add two values, user and password, which will be sent with the request. (For other situations, you might send raw data such as XML or JSON, or binary data such as a file.) Check out the following screenshot: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access