How to persist an OAuth2 token (or use a refresh token) in Postman collections?

Ok, first enter your OAUTH token URL, click on the Body tab, and fill out these POST parameters: client_id, grant_type, username, password, override. Then, click on the Test tab, enter this text and then press Send: var data = JSON.parse(responseBody); postman.setGlobalVariable(“access_token”, data.access_token); postman.setGlobalVariable(“refresh_token”, data.refresh_token); Then enter one of your application URLs, click on the Headers … Read more

Trying to use ‘Postman’ and having trouble setting Basic access authentication Headers

Your header field should look like this: Header : Authorization Value : Basic base64(‘YourOrgName:YourAPIKEY’); You can get the base64 value of your string here: https://www.base64encode.org/ For example, for my-org-name:123key4api it should be bXktb3JnLW5hbWU6MTIza2V5NGFwaQ==. The complete header would look like: Authorization: Basic bXktb3JnLW5hbWU6MTIza2V5NGFwaQ==

Saving API response in Postman to a file

There are 2 ways of saving the response to a file: Click on the small down arrow besides the “Send” button, this will show the “Send and Download” button. Click on it and postman will ask you where to save the response, when the request is done. There is a “Download” button in the response … Read more

How to store postman collections in source control

Putting it in a VCS undoubtly will give you some headaches as you mentioned. Your best bet is to use Postmans functionality to share collections. Here is from the documentation found at https://www.getpostman.com/docs/sharing Starting with Postman v0.9.3 you have the ability to share and manage your collections more effectively. The first thing you will have … Read more

upload file springboot Required request part ‘file’ is not present

This is how your request in Postman should look like: My sample code: application.properties #max file and request size spring.http.multipart.max-file-size=10MB spring.http.multipart.max-request-size=11MB Main Application Class: Application.java import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class Application { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } Rest controller class: import org.springframework.http.MediaType; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestBody; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)