Questions tagged [postman]

Postman is a client for sending and emulating requests over HTTP. It is most commonly used with API requests. Use for questions about the tool itself. Use with any relevant API tags if you are having issues with a specific use.

Started out as a simple testing tool, Postman is now an elegant, flexible tool used to build connected software via APIs - quickly, easily, and accurately. It is used by nearly five million developers and more than 100,000 companies worldwide.

Postman enables you to:

  • Create Collections of requests
  • Organize your work within different Workspaces
  • Split-stack development with Mock Servers
  • Use Tests & Scripts to add dynamic parameters
  • Automate tests with Collection Runner
  • Test performance & behavior with Monitors
  • Document & Publish Collections for collaboration
12313 questions
89
votes
13 answers

URL encode Postman variable?

I use Postman for REST API testing and parametrize tests with global variables. I should put a phone number into GET request: /path/get?phone={{phone}} but leading + sign in the phone number is interpreted as a space. What is the syntax to URL…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
88
votes
5 answers

What is {{$guid}} used for in Postman?

Postman's official website states that Postman has a few dynamic variables. My question is about: {{$guid}}: Adds a v4 style guid What kind of variable is {{$guid}}? How can it be used in test scripts for API requests?
Nurlan Mirzayev
  • 1,120
  • 1
  • 7
  • 15
87
votes
17 answers

FromBody string parameter is giving null

This is probably something very basic, but I am having trouble figuring out where I am going wrong. I am trying to grab a string from the body of a POST, but "jsonString" only shows as null. I also want to avoid using a model, but maybe this isn't…
83
votes
13 answers

Sending POST parameters with Postman doesn't work, but sending GET parameters does

I'm trying to test a simple PHP page using the Chrome extension Postman. When I send URL parameters, the script works fine (eg the variables are available in the $_REQUEST parameter). When I send them as x-www-form-urlencoded parameters, the…
whiterook6
  • 3,270
  • 3
  • 34
  • 77
81
votes
12 answers

How to run one request from another using Pre-request Script in Postman

I'm trying to send an authenticated request with one click in postman. So, I have request named "Oauth" and I'm using Tests to store the token in a local variable. var jsonData = JSON.parse(responseBody); postman.setEnvironmentVariable("token",…
Lasharela
  • 1,307
  • 1
  • 11
  • 23
80
votes
14 answers

PATCH and PUT Request Does not Working with form-data

I am using Laravel to create a RESTFUL application and I test the application with Postman. Currently, there is an issue for PATCH or PUT if the data sent from Postman with form-data. // Parameter `{testimonial}` will be sent to backend. Route::post…
notalentgeek
  • 4,939
  • 11
  • 34
  • 53
79
votes
5 answers

How do you sync Postman with a git repository

I'm wondering how you can sync your Postman config with a git repository. I know you can export and import from Postman to a folder - which is OK - but I wondered if there was something more effortless.
meh-uk
  • 2,031
  • 1
  • 23
  • 36
76
votes
20 answers

Signature expired: is now earlier than error : InvalidSignatureException

I am trying a small example with AWS API Gateway and IAM authorization. The AWS API Gateway generated the below Endpoint : https://xyz1234.execute-api.us-east-2.amazonaws.com/Users/users with POST action and no parameters. Initially I had turned…
j10
  • 2,009
  • 3
  • 27
  • 44
76
votes
6 answers

File upload along with other object in Jersey restful web service

I want to create an employee information in the system by uploading an image along with employee data. I am able to do it with different rest calls using jersey. But I want to achieve in one rest call. I provide below the structure. Please help me…
Sambit
  • 7,625
  • 7
  • 34
  • 65
74
votes
6 answers

How to send multiple files in postman ReSTful web service?

I am using ReSTful webservice. I am uploading multiple photos with one function (PHP). I have used $num_files = count($_FILES['myfile']['name']) to count number of files that are to be uploaded but this always gives 1: When I print…
Always_a_learner
  • 4,585
  • 13
  • 63
  • 112
73
votes
2 answers

How do I read environment variables in Postman tests?

I'm using the packaged app version of Postman to write tests against my Rest API. I'm trying to manage state between consecutive tests. To faciliate this, the Postman object exposed to the Javascript test runtime has methods for setting variables,…
chad
  • 7,369
  • 6
  • 37
  • 56
72
votes
8 answers

Bearer token in postman

I want to set a Bearer Token in postman For some reason my Postman doesn't have the Bearer Token option in the Auth dropdown What can I do in Postman to show that option? Any ideas where I can find it? Regards.
David
  • 1,035
  • 1
  • 7
  • 11
72
votes
13 answers

How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit?

I downloaded Postman for Linux (from https://www.getpostman.com/apps), unpacked .tar.gz file into ~/bin/postman and then tried to execute ~/bin/postman/Postman/Postman. Unfortunately it resulted with following error: A JavaScript error occurred in…
71
votes
11 answers

How to Write Global Functions in Postman

I need help writing a common function to use across a collection of requests which will help with building a framework. I have tried using the below format The following function is declared in the Test tab in the first…
Anji R
  • 843
  • 3
  • 16
  • 23
70
votes
6 answers

Postman - How to move collections between Workspaces?

I have multiple collections on the same Workspace on Postman. Unfortunately things are starting to get messy, to many Collections from different projects on the same place. How can I move some Collections/APIs to new Workspaces?
Lucas Fabre
  • 1,806
  • 2
  • 11
  • 25