You'll also need to install the Postman Interceptor Chrome Extension. NOTE! Interceptor is currently only available in the chrome Postman plugin, NOT the desktop app so if you don't see this icon, you're probably using the desktop app and will need to switch over to Postman chrome app to use it. Interceptor is one of Postman's cooler features it allows the Postman app to route the requests through your chrome instance this means they'll include any cookies (and therefore sessions) you have in chrome. Need a session with the site? Use Interceptor For example you might make a request to /my-endpoint?apiKey= anywhere it would make sense e.g. urls, params, POST bodies, etc. If you set up some environment variables you can interpolate them into your requests using double curly braces. This is great if you're testing api's as different users, or if you have to test the same calls against several different hosts. An environment can contain a set of key-value settings which we can use anywhere in our request. Here we can set a context to execute our requests in. I keep collections of requests around when I'm testing, and I often make collections to share with my team. At any time you can hit the 'save' button to the right of the URL bar to save a request for later. This panel on the left will probably have nothing in it when you start. You can see your request history via the tab at the top and load up any past requests, which is handy if you've edited a request and want to get back to a previous version of it or you're like me and you can't remember anything that happened more than 15 minutes ago. So that's pretty much it for making simple requests, but I've missed a few of the more useful things about postman you can save collections of requests to share with people and also save lists of environment variables which can be interpolated into requests.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |