Postman

Postman is a popular extension for browsers that is also available as a desktop application. You can get it from here: https://www.getpostman.com/. The coolest features of Postman include that you can group requests and use configurable variables in requests.

For example, let's send a sign-in request to our application that we started with Docker Compose. Install Postman and create a new workspace called Rust Microservices. Enter the URL of an application, set the method to POST, and add the body as x-www-form-unlencoded, with two parameters, email and password (the user has to have been created with /signup before). Click the Send button:

As you can see, the microservices returned a response with cookies, which contain an auth-example named value.

But what about if we want to use a browser to perform all activities, but explore sent request and responses later? We can start a tracing proxy. Let's do it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.173.242