Questions tagged [postman]

Postman is a toolchain for API developers to share, test, document and monitor APIs.

1
vote
1answer
10 views

Java Servlet doPost() returning null from Postman

I am doing a simple Java Servlet POST request without using any HTML and only using Postman. And the response from getParameter() is always null. Here is the servlet: @WebServlet("/api/form") public ...
0
votes
0answers
6 views

Call Rest TaxJar API from SQL Server Code

I'm working on calling TaxJar API from SQL Server, I saw some articles like: calling an api from sql server stored-procedure but unfirtunately I did know how to pass a Token value to the call Here ...
0
votes
0answers
15 views

Is it possible to navigate through html document in postman using JS DOM Element method

and how to declare it in Postman sandbox? I need something like this: var h1Text = window.document.querySelector("h1").innerHTML; console.log(h1Text); Also I need to find something this way: I ...
0
votes
0answers
7 views

Azure Api App Runs Requests From Origins Are Not Added Allowed Origins [duplicate]

I've added allowed origins from Azure Portal/Api App/Cors Section but I can post requests from Postman. Shouldn't Allowed Origin options break these requests that coming from Postman?
0
votes
1answer
41 views

How to upload image to server using php laravel?

I've been trying to write an api to upload image to server ,but all in vain. I'm using the laravel framework .And tried this example but it is not working. Also while testing the api from POSTMAN ,I ...
0
votes
0answers
7 views

can we set iteraion count at folder level under collection in postman

Is any one implemented folder level iteration for different API request in postman. I have tried to run it but only able to set iteration at collection level.
0
votes
2answers
17 views

Passing data frame to MS R Server model operationalisation

I am running ML server and I have a service deployed that expects one of its inputs to be a data.frame. When I connect with R to that API endpoint using mrsdeploy, I am able to pass a data.frame. I ...
1
vote
0answers
6 views

Twitter Search API query with hashtag returning returning "Could not authenticate you”,”code”:32

I have scoured the web to try and find an answer to what seems to be a simple solution but unable to come across one. I am using Postman. On the Authorisation tab, I have entered the details as ...
0
votes
0answers
8 views

HTTP Requests with cookies on chrome extension

I have been several days trying to understand how a chrome extension is working when a HTTP request is made. I am using YARC (Yet Another Rest Client) Chrome extension. But I guess it works same for ...
0
votes
0answers
20 views

Post a message to Kafka topic using postman

I have created a topic into Kafka, And I am trying to post a message using postman but I am getting internal server error Content-type:application/json Body: { "records": [ { "key": "somekey", "...
0
votes
0answers
7 views

how to solve xhr call, its working on postman

Would be really appreciate if someone help me out, i successfully able to call API via postman (Method POST) but not getting via XHR, i am sure i am doing something wrong. I am getting 500 (Internal ...
0
votes
1answer
35 views

How to automatically get Bearer Token using REST Assured

I am using Postman currently to generate Bearer Token, which I am using in my automated tests. Now I would like to automate also the Bearer Token generation process too using REST Assured in Java. ...
0
votes
0answers
7 views

solving 403 issue when sending post request via postman

I am currently trying to make a post request (like in the network protocol) using “postman” in order to access the content of the website “https://www.swisscom.ch/en/about/news/archive.html” directly ...
0
votes
2answers
17 views

POSTMAN: Extracting Values from body

I'm trying to recreate a scenario with the postman and there is a _csrf value in the previous GET request response body to be passed with the next POST request. I Can't find a way to extract the ...
-1
votes
0answers
8 views

get the original format (NO TMP) to store in API [on hold]

my api only allows data formats jpeg and png to be posted, how to get both data formats in php, while I only always get tmp format, how is this?
0
votes
1answer
46 views

Postman request doesn't work - Rest APi implementation

I have a problem to create a POST or a GET request in postman. I have an controller that suppose to save a new project or to receive all projects from DB. If I try to save a project in a class that ...
0
votes
0answers
7 views

Passing postman form-data to grape rails

I have a end_point which looks like this class LabelsEndpoint < API namespace :labels do desc 'Endpoint to mark labels as delivered' params do requires :labels_attributes, type: Array ...
1
vote
2answers
40 views

How to create a RestAPIs with JPA relational entities

I have a problem. I don't know how to create an API when I have other entities. I work with Postman and when I do a request to see all projects from the database I want to receive the entities also. ...
-1
votes
1answer
17 views

Postman vs json string in url

could you explain to me why if I use postman and send data to the server with content-type application/json I receive a response but if I send the same request but against postman, I put JSON string ...
2
votes
0answers
18 views

How to read two folder with Newman

I have the following line with Newman (works correctly), but I am looking to execute two folders at the same petition. First will be executed Login_full and then another (It is not essential) newman ...
0
votes
1answer
15 views

CppRest GET not receiving body?

I'm trying to GET the content of the revision history of a Wikipedia page to parse the various revisions' date and size. When I'm running a GET on https://en.wikipedia.org/w/index.php?title=Barbecue&...
0
votes
0answers
10 views

POSTMAN Restsharp Request Works, using the code it doesn't have file data

I an making a POST request to upload a file on a DOTNet Core project, using the Controllers as API's. [HttpPost("UploadDoc")] public async Task<IActionResult> API_UploadDocument(...
0
votes
0answers
4 views

Append new test results to an existing newman report

I am using the following code snippet to run all collections in a folder using POSTMAN's npm module: #!/usr/bin/env node /** * @fileOverview Read all collection files within a directory and run them ...
0
votes
0answers
25 views

Joi validation javascript postman

When I choose audi, and bmw, I start to validate on postman,but I cant see vehicleA and vehicleB for required. But if I chose only audi or bmw. I can see vehicleA or VehicleB respectively. cars: Joi....
0
votes
0answers
26 views

Always receiving event.data as null,push event service worker

I came across the same question, but can't solved my problem yet. I am getting the success response and the notification bar, but data in event is null so notification bar shows static data that I ...
0
votes
1answer
13 views

python easyredmine create issue not working

We are trying to make a simple request to create an issue using Easy redmine api (this should be really simple) we have tried from postman and also within pycharm via python code, we always recieve a ...
0
votes
1answer
11 views

Unable to simulate curl in postman

I have a curl request as below: curl -i -H "Content-Type: application/json" -X PUT -d '[]' http://localhost:3000/v1/api/current.json When I hit the above request in command prompt I get status 200 ...
1
vote
2answers
34 views

Post request does not work in Scrapy. Works in Postman. Where am I wrong?

I use scrapy.FormRequest.from_response to Post. I am getting through captcha and all data is in place but Do not get the table I expect. Here is my payload { 'captcha': '680336', 'districtCode': ...
-1
votes
0answers
14 views

How can we use postman global variable in the jenkins

I am able to configure and execute postman/newman build with the jenkins with the use of postman collection's environment variable and its working fine. The issue is when i try to use global variable ...
1
vote
2answers
36 views

Can I use Google Sheets to connect to an API (using OAuth2) OR can I send a hourly scheduled response from Postman to Google Sheets?

Goal I want to connect to an API (to a web service called Sharesight which monitors stock portfolios) so that I can pull my portfolio returns every hour (during business days) into the Google Sheets. ...
-1
votes
0answers
20 views

Fatal error: Uncaught Error: Call to a member function bind_param() on boolean i write this code in procedural php

Fatal error: Uncaught Error: Call to a member function bind_param() on boolean in C:\xampp\htdocs\Post.php:30 Stack trace: #0 {main} thrown in C:\xampp\htdocs\Post.php on line 30 I want to make ...
1
vote
1answer
72 views

Postman 403 Forbidden message

I made some api with REST Spring. GET request works fine in Postman but when I try to do POST request I receive this error : { "timestamp": "2018-09-25T06:39:27.226+0000", "status": 403, ...
3
votes
2answers
34 views

how to set foreignkey value in child serializer in django rest framework when the parent record exists

I have two models first as parent model "Country", that filled before the second one as child model "City". as the following class Country(models.Model): name = models.CharField(max_length=35) ...
-3
votes
0answers
7 views

Soap Service How to Pass Array Parameter

this my Command "ProductGet( string[]ItemNo, bool? HandEle)" SoapEnvBody:- https://i.stack.imgur.com/Esy8j.png ErrorOccured:- a:DeserializationFailed`The formatter threw an exception while trying ...
-1
votes
0answers
7 views

Test Case for one to many mapping in Postman

I am testing APIs in Postman, there are some entities with one to many relationships... for testing the same, the test case to check value in the body fails when the entity has one to many mapping
0
votes
1answer
28 views

How can i verify if there are duplicate header values in the response in Postman

I want to verify if the response headers are unique. If the response headers are not uniquye my postman test fails. Because if there are more response header with the same name, then the values are ...
0
votes
0answers
9 views

Postman FormsAuthentication.Encrypt call

I would like to call my API using Postman but it seems that the API relies on a Cookie being present to consider the call "authorized". From what I can tell I am unable to create an appropriate cookie ...
0
votes
1answer
35 views

Retrofit Response body is null while isn't NULL in Postman

I call a post request that register a user.I pass three field to API include name,email,password.My API is on localhost.Response is an object called 'response' and includes a list of String.Response ...
0
votes
1answer
15 views

How to read entire test data file in postman as part of pre-request script?

I am trying to read the entire test data file as a part of pre-request script in postman. I tried the variable pm.iterationData, however ,it prints only the current iteration data set in the ...
1
vote
1answer
29 views

java rest returning reponse with json to postman - syntax error: unexpected 'S'

When using postman, i get the following error Syntax error: unexpected 'S' even though my JSON String seems fine. I have looked on similar topics, that typically says to give the response object an ...
1
vote
1answer
52 views

Postman always valid as true a response with the schema using tv4

I've did a lot of tests but I coulnd't find the way to solve it. Simplifying, I have this Postman test script to validate that the JSON response es according with the JSON schema defined to this API: ...
0
votes
1answer
42 views

How to save data from Postman in Symfony?[SOLVED]

I try to send data from Postman to this function public function new(Request $request): Response { $tag = new Tag(); $form = $this->createForm(TagType::class, $tag); $...
-4
votes
2answers
39 views

Request For Help In using POST in postman and Angular Controller

I am using Postman for the first time to POST to a server. I get an error " a non-descript body is required" What should I put in the body. I selected JSON and raw. This is the Angular controller ...
1
vote
1answer
25 views

Call to managedDevices return an error in POSTMAN but works in PowerShell

I do a GET with a valid token to https://graph.microsoft.com/beta/deviceManagement/managedDevices and I get this error: { "error": { "code": "UnknownError", "message": { "ErrorCode":...
0
votes
0answers
9 views

In Postman API documenter response data not visible

I published my postman collection, after published I got documenter Url,from there able to see URL, RequestType, Headers, Body, Data. But Unable to see Response Data. Where do we see Response data in ...
0
votes
1answer
26 views

how to send multipart data and json data together in one request using curl or postman

I have a case where I have to save json data and upload a file in one request. this is how I am doing in spring public void profile (@RequestBody @Validated @Valid ProfileDTO profileDTO, ...
0
votes
0answers
14 views

When and how should one remove added custom formats in tv4?

Is there a way to remove/delete custom formats which we have added in tv4? I am writing a postman script for API testing. I have added few custom formats to validate attributes of JSON response. tv4....
2
votes
0answers
31 views

Authorization has been denied for this request - B2C OAuthBearerAuthenticationOptions

I've followed a tutorial where with Postman we can connect to our API. The Postman returns a Bearer token, but when I try to test the api I keep getting the Authorization has been denied for this ...
-1
votes
0answers
17 views

Postman pre-script get from input value

//body a:1 b:2 sign:{{Sign}} //script var foo = pm.variables.get("b"); consloe.log(foo); foo = CryptoJS.MD5(foo).toString(); postman.setEnvironmentVariable('Sign', ...
2
votes
1answer
50 views

New to api testing pre-request scripts - Automatically getting access token with OAuth 2.0 Grant Type 'Client Credentials'

I have been stuck for days on this and looked through many articles, but can not find a script that can help me. The basis of the script is to automatically get authorization token, before i use a ...