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
3
votes
5 answers

Assert that a Array of JSONs contains one property

I have a device store project that allows to add/delete/edit devices and I'm trying to test in postman that after a POST ,that adds a device to the list ,the device can be found in my response body.I'm using Postman BDD and the Chai sintax [ { …
T.Frincu
  • 43
  • 7
3
votes
1 answer

Setting authentication cookie manually in Postman

I authenticate in Postman by sending a POST request to an api endpoint (https) with my credentials included. The response sets two cookies. Set-Cookie…
wasmachien
  • 969
  • 1
  • 11
  • 28
3
votes
1 answer

How to fetch xml through request body and parse to Spring boot

I am trying to fetch xml through postman into spring boot rest api. But having a problem while fetching the data from it. How to parse it into spring boot application and get the attributes values. Otherwise, How to fetch xml data by creating pojo…
Nikhil Katore
  • 31
  • 1
  • 2
3
votes
0 answers

Refreshing JWT in Postman

We are new to token authorisation, in Postman we are able to get an access token but are unsure how to get a refresh token as we do not know where to obtain clientID, client secret etc. values from. We have already tried Auth0 but we do not want any…
3
votes
1 answer

Cloud foundry API - stop application

I Need API to stop the running application, after some search I've found this API http://apidocs.cloudfoundry.org/263/apps/updating_an_app.html if I want to test it with postman how can I obtain token and where should I put it inside postman…
user6124024
3
votes
0 answers

Adding Webhook to SharePoint List

I'm using Postman to add a Webhook to a SharePoint List and am having an permission issue: POST https://[Company].sharepoint.com/sites/Test/_api/web/lists('80105E8F-2CEA-4D49-8238-2A1829B46494')/subscriptions Body: { "resource":…
Matt Fitzmaurice
  • 1,319
  • 4
  • 19
  • 40
3
votes
2 answers

Postman - how to obtain Azure Active Directory token using sign in form?

Is is possible to obtain an AAD token in Postman by letting the user to Sign In using the standard AAD sign in form? I know how to obtain token using the request to AAD (grant_type = client_credentials) but such a token does not have a UPN (user…
Skorunka František
  • 5,102
  • 7
  • 44
  • 69
3
votes
2 answers

Why react native fetch always return 200 even if login failed?

I use these code to post data to login postJson(url, data, callback){ var fetchOptions = { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, …
mrbean
  • 171
  • 2
  • 15
3
votes
2 answers

Node js & mongoDB - TypeError: db.collection is not a function

I am trying to post data from POSTMAN to an external database that I created on mLab but I am getting the error db.collection is not a function. There is a similar question thread but the answer is incomplete and doesn't save any keys/values I put…
3
votes
1 answer

How can I add a large JSON object to a header in Postman?

The SendGrid API needs some large JSON in the X-SMTPAPI custom header field. How can I enter & edit this in Postman? E.g.: { "to": [ "ben@sendgrid.com", "joe@sendgrid.com" ], "sub": { "%name%": [ "Ben", "Joe" ], …
Obiwahn
  • 2,677
  • 2
  • 26
  • 36
3
votes
2 answers

How to send multipartFile and Json with postman and spring boot

I want to send a file and a json model at one post request. My Request Mapping looks like that: @ResponseBody @RequestMapping(value = "/sftp/upload", method = RequestMethod.POST) public ResponseEntity upload(@RequestPart("file")…
Patrick
  • 12,336
  • 15
  • 73
  • 115
3
votes
1 answer

HTTP Authentication equivalent for cURL username:password

Is there a way to convert the following curl into an normal http request? curl --user : https://{username}.fred.sensetecnic.com/api/{custom_endpoint_name} Into something like this (using Postman for the http requests) GET…
Delonous
  • 201
  • 2
  • 5
  • 11
3
votes
2 answers

Pre-Request Script in Postman

How to call a POST API request (Login API having request body with Username & Password field) from pre-request script tab of an another GET API which uses token from above API's body in its request url. Login API : POST method; request body :…
Amrit
  • 89
  • 1
  • 4
  • 11
3
votes
1 answer

Handling cURL in PHP

I am trying to connect one Login web interface to an already created authentication active repository that I have on AWS. I am new on that, I have tried doing it using Postman, with a raw template for a JSON application like this: { "userName" :…
user7770926
3
votes
0 answers

How to send a post request to Azure IoT Hub using postman

I am trying, in order to simulate a device, to send a message to an existing IoT-Hub following this procedure: https://www.codeproject.com/Articles/1113447/Azure-IOT-Hub-REST-API I am able to successfully create my shared access signature using the…
Moncefmd
  • 343
  • 1
  • 4
  • 9