Questions tagged [postman]
Postman is a toolchain for API developers to share, test, document and monitor APIs.
10,855
questions
0
votes
0
answers
8
views
What endpoint is made with generating firebase token?
I had an application with firebase auth implementation. I would like to generate this access_token directly in postman, but unfortunately I'm note sure how to do it.
I POST:
https://www.googleapis.com/...
0
votes
1
answer
28
views
Send JSON Object from Postman to Restful webservices
For exercise I'm trying to make a POST call on postman having the following classes but it always gives me an error that it cannot read the data.
The GET give me back the various users in the db and ...
0
votes
0
answers
6
views
How to upload multiple files and parameters using postman?
I need to upload multiple files and parameters along with it. How can I pass the parameters in Postman ? Initially, I plan to pass it as Body > raw but seems as it doesn't allow to upload image.
[
...
-1
votes
0
answers
10
views
Request from official Postman Binance API collection returns "Signature for this request is not valid" in DELETE methods
I'm playing Binance API Postman Collection from the official Binanace Github repository
I filled required Enviroment Variables (binance-api-key and binance-api-secret) and I was able to make succesful ...
-2
votes
0
answers
11
views
How to login through cookies in postman?
I am trying to login into an url through postman it requires authentication, how can I authenticate with cookies
0
votes
1
answer
20
views
Trying to measure the length of specific parameter in postman
I am newbee and don't have enough experience writing test script in postman. At the moment I am trying to extract length of a specific variable(organizationnumber) for the following response
{
&...
-1
votes
0
answers
20
views
how to add default value and range to query param on postman?
Say I have a query parameter pageNumber that has default value 0 and can be an integer from [1..50]
How can I represent this in my URL or in the value section?
This is what I have so far:
GET https://...
-1
votes
0
answers
14
views
Postman - transfer response array as a variable in request body
I have a GET api call which returns the following response:
{
"transId": "01",
"Products": [
{
"ProductID": "02",
"...
-1
votes
0
answers
12
views
What is equivalent request in postman to curl -T?
How to create in postman, a request equivalent to:
curl -T <name-file> <url-my-bucket-on-cloud>
To see the kind of request I am creating:
https://curl.se/docs/manpage.html#-T
I've tried ...
0
votes
1
answer
22
views
Postman - How can i loop through and verify if element is not null
this is my response body below and i want to ensure i am able to verify standardlabel and standardtext is not null. I know how to do it individually but, how can I do it through looping?
I have many ...
-1
votes
0
answers
16
views
Pass arguments in postman
I have an the following command that I run from my server.
curl -XGET -u muID:myPass 'https://myserverID:9200/_cluster/health?pretty' --cacert /etc/elastic/certs/http_ca.crt
How do setup postman to ...
0
votes
0
answers
29
views
Postman is giving me error "Error: read ECONNRESET"
I wanted to test my new API, but it was giving me error with Postman
so i redownloaded it and in the initial page it was a test api : http://github.com/user/repo/main/db.json
With GetMethod i just ...
1
vote
1
answer
33
views
Getting 400 Bad Request error while trying to move Azure resources via Postman
I am trying to move resources from one resource group to another via Postman.
I got the access token successfully by using below parameters:
https://login.microsoftonline.com/mytenantid/oauth2/v2.0/...
-2
votes
0
answers
28
views
what is the difference between raw data and form-data in postman? [duplicate]
what is the difference between raw data and form-data in postman?
I send data in both format and it works except media in raw data its have issue then why we are using raw data when our work done by ...
-2
votes
0
answers
13
views
Box canyon after Postman install? ("Whoa there, early adopter...")
Installed Postman on my M1 Mac...opened and get this popup that I cannot escape/close:Whoah there, early adopter...major update...can't access team data...
I did have a Postman account previously, ...
0
votes
1
answer
19
views
Unable to fetch list of Azure Resources via Postman
I am trying to fetch the list of resources present in my Azure Resource Group.
To do that, I got an access token by registering one app in Azure AD using the client_credentials flow.
But when I am ...
0
votes
0
answers
14
views
Postman Test - If/else if clause stuck on 1st IF
I am trying to verify that the language from "accept-language" is taking the correct information (aka correct translations).
since the language in the header is like: en, de, es and the ...
-1
votes
0
answers
45
views
Having trouble iterating through a JSON file in Python [duplicate]
I have a question about JSON elements. I'm sending JSON to my Python program, where I want to iterate through it and put the data from the JSON into a table. but I'm having trouble looping through the ...
0
votes
0
answers
13
views
Why can't I fetch a single tweet using the twitter API v2
I am using postman to fetch a single tweet using the Twitter API v2 collection and I am following the instructions located on Twitter about Getting Started with Postman at https://developer.twitter....
0
votes
0
answers
29
views
List Pull request using the Github API in the pre-request-script from Postman
I have to retrieve the Github pull request, using the url:
https://api.github.com/repos/<user>/<repo>/pulls/<pr_number> and the repo
https://api.github.com/repos/<user>/<...
-1
votes
0
answers
15
views
How do I convert results from a POSTMAN GET result to XLSX
I am very new to the coding world and am as slow as a turtle. I have been tasked to get a list of issues from GITLAB which I have done and have the output from ubuntu and POSTMAN but I want to know ...
-1
votes
0
answers
13
views
How to update an xml file and then send it as file in Postman for POST request as fomr-data
I want to update a xml file before sending it as a file in POST request in postman.
-3
votes
1
answer
41
views
Postman Pre-Request Script to Read Variables from CSV file and Append to JSON Body
I have a JSON body with template to pass to an API endpoint in Postman/Newman as follows:
{
"total": [
{
"var1a": "ABCDE",
"var1b": {
&...
-1
votes
1
answer
24
views
(some) Tests fail when running Postman collection via Newman but pass when running in Postman
When running my Postman collection, I receive 0 errors throughout the whole suite, but in Newman the tests in two requests fail.
These are my PM tests + relevant body:
testsuite = "T5 - ...
-2
votes
0
answers
23
views
If - else statement in JSON [closed]
I have a JSON payload to POST into Postman that needs adding if else statement. If id is not null then type is "abcde", else id is "abc". How I can have this if logic in my payload?...
0
votes
0
answers
10
views
How to send a txt file or file data through http POST request as raw data in XML Format
So I am currently sending and http POST request from post man using a raw body xml format for example
<template>
<field1><field1>
<field2><field2>
...
0
votes
0
answers
25
views
Cognito Scope Error when accessing cognitoidentityprovider
I'm having trouble accessing cognitoidentityprovider in my AWS Lambda function when testing my API endpoints with Postman.
"Access Token does not have required scopes"
When I'm adding the ...
1
vote
0
answers
15
views
Postman: Is there a way to read browser's localStorage values in Postman
After logging into the website, I need to make a POST call in Postman but the URL requires an userID which is stored in the browser's localStorage after login (refer to screenshot). The login API ...
0
votes
1
answer
26
views
I'm getting this error "ReferenceError: responceBody is not defined"
i have written my test script code like this
var responce=JSON.parse(responceBody);
tests["scope"] = responce.scope == "APP";
0
votes
1
answer
15
views
First char in an enviroment var is being stripped when using moment in Postman
Using moment in Prerequest:
var yesterday = moment().subtract(1, 'days').format("yyyy-MM-DD");
console.log(yesterday);
var pastDate = yesterday;
pm.environment.set("pastDate", ...
-1
votes
1
answer
17
views
How to get error message in postman instead of console
I am using node.js. I am getting the errors in the console window but I want it in the postman result.
Following is the code:
try {
const { username, email, password } = req.body;
if (!...
-1
votes
0
answers
19
views
How to read a Token from Login API and store it in Environment variable in Postman
I have a set of Apis in which the first step is Login, which returns a JWT. I store this token in an Environment variable, and all the subsequent calls use this variable for the Header token. Instead ...
0
votes
1
answer
31
views
Postman generate crypto hash gives error: TypeError: crypto.createHash is not a function
I am trying to create a Postman pre-requisite script by converting the below TS code.
import crypto from 'crypto';
const createTestingUserHash = (emailAddress: string, timestamp: string, salt: string)...
-1
votes
0
answers
17
views
insert Timestamp object in postman not working
I want to test Post Api in spring boot app so I create json and post them in postamn, but my problem that i don't know the coorect whay to insert it, i just want to insert it whatever what is the date,...
-1
votes
0
answers
47
views
How can I handle API Post calling with error 419 in C# Console Application?
In my code, I would call a post api and then get a response. the api that I use it has 3 headers and that is you see down there in my code. This api works totally ok in Postman but when I run in c# ...
-1
votes
1
answer
23
views
How to make Postman show CSRF token from get request using postman interceptor
I'm having specific problem that I would like to find solution to. I'm working with my spring security and I should use Postman Interceptor to retrieve X-CSRF-TOKEN in Cookies section. I installed ...
0
votes
2
answers
38
views
Why showing empty response in postman? [closed]
@RestController
public class TrainerController {
@Autowired
TrainerRepo TRepo;
@PostMapping(value="/trainers")
public ResponseEntity<Trainer> saveTrainer(@...
0
votes
0
answers
12
views
Various API query parameters returns the same cached response
The API is serverless that uses API Gateway and MongoDB Atlas; api cache is not enabled.
I wanted to conduct some testing of the API via postman and I can't get past simple API requests because the ...
0
votes
1
answer
26
views
Direct Line Channel Creation on Bot Framework and test with Postman
I have been testing some botbuilder samples in python with Bot Framework Emulator, both on localhost. But in order to understand how the communication was happening, I decided to make the requests via ...
-1
votes
0
answers
43
views
500 INTERNAL_SERVER_ERROR after migrating spring boot from 1.5.22 to 2.2.4
I'm trying to migrate my spring boot application from 1.5.22 to 2.2.4. I've changed the code according to spring boot 2 version. I am sending a Http POST request to my RESTful API with Spring Boot 2.2....
-1
votes
0
answers
23
views
How to retrieve eBay Access Token URL by using Postman
The title is written as if this post is a guide, and that's because it is my intention to turn this into a "how-to" in case that anyone in the future needs it. I believe that this step of ...
-2
votes
0
answers
18
views
Postman returns [{}] in body when returning an array list
I'm making a rest API in Spring which gets something from the database and then returns it.
However, Postman does not return the data, only returns the status (the correct one).
I've checked it ...
0
votes
0
answers
8
views
Is there a way to generate random images in form-data in postman?
My body request is in form-data and requires me to upload my images- this is affecting my automation. Please how can I generate random image in my postman using the form-data style?
0
votes
0
answers
15
views
I am getting a constant sending request in postman
I am doing a post request using postman to my server but instead, I am getting a sending request display on my postman. It is not showing any error and I am pretty new to this technology. Please help.
...
-3
votes
0
answers
20
views
I want to ask for help about postman [closed]
I'm having problems after installing the Postman application in Windows 10..the application page is just white and no menu appears or anything..maybe someone here can help?
enter image description ...
7
votes
3
answers
82
views
Not able to use query param with expressJs api in localhost
In my index.js file
app.use('/api/v1/users', userRouter)
In Router file
router.get("/:id", getUserDataById);
In postman:
My GET URL looks like this: http://localhost:3000/api/v1/users?id=...
0
votes
1
answer
21
views
GraphQL Query Only Works When Input Type is Raw Text
I am trying to create a GraphQL endpoint on a Spring-Boot project and connect it to an Angular UI. I want to perform basic operations such as getting all elements, getting a specific element and ...
0
votes
1
answer
38
views
Failed to create Azure storage account via Postman
I am trying to create storage account via Postman. I created one service principal via Azure Portal and got access token with below parameters:
https://login.microsoftonline.com/mytenant_id/oauth2/v2....
0
votes
1
answer
26
views
POST Request returns only the ID , not the data in JSON format
Im trying a POST request from Postman to Mongo Database. Im getting only the ID of the object, the data is not being displayed.
Model:
const mongoose = require("mongoose");
const ...
2
votes
1
answer
40
views
GORM don't create many2many associations
I have model:
type Book struct {
gorm.Model
Title string `json:"title"`
Author string `json:"author"`
Description string `json:"description"`
...