Questions tagged [postman]

0

votes
0

answer
4

Views

Publish only GET endpoints from collection?

Is it possible to filter a collection by only GET? Both in UI, and when publishing docs, it'd be nice to say, only want the GETs, or POSTs, etc.
mangonights
1

votes
1

answer
29

Views

whats the difference between export.create and router.post?

I've seen 2 ways of creating a restful API. 1: 'export.create' and once you add code on postman you have to add it in json format. 2: 'router.post' which I understand that's using express and when you add code on postman you add it using 'x-www-form-urlencoded' What's the difference? router.post('...
LaCarl
2

votes
0

answer
20

Views

How to fix 'http: named cookie not present' in golang?

I'm building a small dinner/plan management application (with the use of microservices) for a couple of people I know. The intention is that each person can login to their own account and can then authenticate to other services using a bearer token (JWT). This bearer token is stored in a cookie. How...
Abe Brandsma
1

votes
1

answer
3.2k

Views

Set cookie in Postman with variable

I'm trying to write some postman tests that require me to set a cookie. My first request returns a token in a json payload, I've pulled this out and stored it in a variable but I cant seem to inject this into a cookie for further requests. I get the value for the cookie like: var json = pm.response...
vickirk
0

votes
0

answer
8

Views

AccessDenied, Either scp or roles claim need to be present in the token

Using this URI I am trying to generate access tokens https://login.microsoftonline.com//oauth2/v2.0/token and the access tokens were successfully generated. And I am passing client_id,client_secret,grant_type and scope. When I tried to check https://jwt.io/#encoded-jwt I found that its an Invalid...
Divyashree R
1

votes
0

answer
135

Views

How to prevent WCF service from wrapping CDATA in response?

I have created WCF method which return C# object as response. Now the problem is that while I am posting request to this method using chrome postman I am getting JSON response and some of parameters are wrapped with CDATA. For example, One of parameter URL has value like 'http://www.examplewebsite.c...
Sanjay Parmar
1

votes
1

answer
237

Views

Nexmo cannot verify user Using postman

So I had followed the instruction from the documentation here: https://dashboard.nexmo.com/verify but then I successfully received the sms and recieved the request_id whenever i try to validate the message at https://api.nexmo.com/verify/check/json it returns status of 6 and 'The Nexmo platform was...
xSkrappy
1

votes
2

answer
50

Views

Sending post parameters with JsonObjectRequest volley to active campaign api

I am adding contacts to active campaign api but the request is not sending the post parameters.The parameters are being sent from postman but with volley its not working. I have tried sending params from the constructor also but no progress. Here is the code. Map params = new HashMap(); params.put('...
Wijdan
1

votes
0

answer
208

Views

Bitrix don't send access token oauth2

I tried to connect with bitrix using software Postman API. The goal was to test some REST comments, but I have problem with authorization. Using Postman I filled up: auth url, access token url, Client ID and Client secret of my bitrix, after that login page is visible and I entered login and passwo...
Menomen
1

votes
2

answer
545

Views

debug not working for rest method PUT using postman rest client

I have two Uri's POST : http://localhost:8080/applications/2851/involved-parties/1/contacts PUT : http://localhost:8080/applications/2851/involved-parties/1/contacts I am trying to debug methods,I have added breakpoint for both methods at starting, started server in debug mode. while sending json r...
kiran rathod
1

votes
1

answer
197

Views

Getting different response in Restsharp then in Postman

I am getting a correct response when using Postman but when I use the generated restsharp code in Postman i get the following as a response 'Not available at this moment'. The generated Code is the following: var client = new RestClient('https://allevents.in/api/index.php/events/web/q'); var request...
CampbellL
1

votes
1

answer
288

Views

Send body JSON with Postman in a POST method to execute procedure in ms sql server

I want to send a JSON (body) on Postman with POST method and receive a result. Im a trainee and my boss asked me this. I've been looking in web for a week and didn't find. I said to him that method to receive a data is GET, but he said that GET has a limit on URL. If the stored procedure have a lot...
Luiz Felippe Serrano
1

votes
0

answer
72

Views

Request works in postman not IONIC

I'm developing an ionic app with a back-end with Java spring Boot with Spring security on it. When I tried to get a token with postman everything went well but in ionic, I got a 401 HTTP code. I have no cors problem, I have disabled it in my browser. Here is the code from Ionic: login() { return new...
Selwyn Joymangul
1

votes
1

answer
418

Views

How to use Postman native client to capture API requests during Protractor test execution

I've built out an extensive end-to-end test suite for our application using Protractor and I'm now setting my focus on our back end API which doesn't have any documentation or automated tests. My goal is to capture API calls made during my protractor execution using postman's native Windows client....
Chris Traynor
1

votes
0

answer
242

Views

post request with spring mvc(RestTemplate) brings an unkown host error . But yet posting the same request works fine with postman all the time

I am using Spring MVC RestTemplate. Whenever i send a post request to a service end point(using my spring mc app) i get an error that the destination host is unknown. But if i post the same request several times, by refreshing the browser repeatedly(which is not desirable) the request gets sent and...
geobudex
1

votes
1

answer
161

Views

Usage of cookie in POSTMAN

I am trying to login to a website using postman. The website is done using PHP and I have the username and the password for it. I installed burp to check what are we posting in order to login, and it shows the following: However, when I add the 3 of the parameters with their correct values in POST...
tony9099
1

votes
2

answer
939

Views

Why can't the google JWT token be decoded by jwt.io

I have Google authentication enabled in an Azure App Service .NET Core application, and I am trying to generate an access token using Postman: An access token and an id_token get successfully generated, but when I input the access token into jwt.io, I see gibberish back: I am new to google auth as...
Mikeyg36
1

votes
0

answer
387

Views

Working with zoho api's

I am working on ZOHO API's. Using POSTMAN I am trying to GET the details of a project. The API is as follows GET /portal/[PORTALID]/projects/[PROJECTID]/ Sample Response Status: 200 Success Content Type: application/json;charset=utf-8 { 'projects': [{ 'id': 170876000000765009, 'task_count': { 'open...
Faisal
1

votes
0

answer
72

Views

Auth0 Ruby on Rails TCP Error

I am using Auth0's Ruby on Rails API Sample as boilerplate to set up authentication with a new app. Everything is working up to but not including the 'Test Your API with cURL' step on the second page of the instructions. I have tried testing both with cURL and with Postman, and both times I receive...
223seneca
1

votes
1

answer
1.1k

Views

How to add custom header for every request in swagger json file

I've copy swagger.json file from one of the service and want to import it into Postman collection Then the problem is I want to add custom API-key in header for every requests. I've read about securityDefinitions but it doesn't seems to work Let's say it's name is myCustomAPIKey, Is there a way that...
1

votes
1

answer
453

Views

httppostedfilebase receive null in Web API when requested from Postman

I was trying to send a post request to my API controller. It receives all input except file input. I tried few solutions but nothing is working. I created same form in MVC and it worked but doesn't work in API where am I lacking. My Blogger Controller / Create action public HttpResponseMessage Creat...
Akash Kool
1

votes
1

answer
351

Views

Prevent sync data in postman

Postman software is tools that use for execute HTTP request with methods (put,get and ...) This software is free and you can save all request in cloud The synchronize data is auto with Postman but it take about 5 second for sync Can i stop it or use it offline only?
Omid Aghakhani
1

votes
0

answer
770

Views

Unable to insert data using POST request - Spring REST

I am making a simple project that uses a Spring RESTApi. I tried to insert data into database using POST request but unfortunately got error there. I am using Postman for API request. All other request get, delete and put works fine but post doesn't work. i have tried inserting data manually withou...
Hoax
1

votes
0

answer
251

Views

Status code 400 when converting Postman Request into Objective-C

I'm trying to upload an image to an API and then use the result. When using Postman, everything runs successfully. When I used the export feature to convert the code to Objective-C, I tried running it, but I'm getting a status code 400 (my parameters are invalid). Here is the Postman request: Here...
fi12
1

votes
1

answer
2.7k

Views

404 error when post in Postman

I´m trying to send a POST request that is an Person object that contains a list of contacts. But I don´t know if this is the correct syntax to send a list: { 'name':'romulo', 'contacts' : [ { 'contact' : '3466577' }, { 'contact' : '532423' } ] } But keeps me returning a 404 error what i´m d...
Rômulo Sorato
1

votes
0

answer
798

Views

how to call WCF Service in post man post request

how to call WCF Service in PostMan or any other WebService Software Please help me this c# code URL POST: http://localhost:20826/Service1.svc?wsdl public class Service1 : System.Web.Services.WebService , IService1 { [WebMethod] public GetResponse RequestApiToken(string CallerId) { GetResponse respo...
John
1

votes
1

answer
278

Views

Restsharp getting gateway timeout when postman works fine

Is there any reason a postman post request would work but the very same restsharp code gateway times out? I can still get the token just fine through restsharp, but when I try one request, it times out.
randombeggar
0

votes
0

answer
5

Views

Postman allowing me to post to my localhost but not get any data

I have a basic server setup using node.js. I have an endpoint called account, and i've set up my api for post and get. I was posting to my localhost using postman, with data represented in json format and was able to both post and get any type of accounts. Now what I wanted to do is post in the same...
Faaiz Haque
1

votes
0

answer
144

Views

Nodejs Passport authentication & local strategy not work through API Call

This is solved. Actually, the problem is with postman not on Passport code I have a login system which is implemented through Nodejs Passport. For Login I use Handlebars for creating the UI and send the form data from frontend to backend. These is my login Handlebars File Username Password Submit an...
Abhay
1

votes
1

answer
519

Views

Java - How to insert data using postman

My code is running perfect but at the postman side showing error 'The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request 'accept' headers.' while posted data is coming in restController,serviceImpl and in Student...
user9251514
1

votes
0

answer
441

Views

How to turn off escaping in Postman?

I'm using Postman to test a JSON API. The response includes \r, \n, \t, etc. I'm pretty sure that I'm actually sending x0D, x0A, x09, etc. But is there any way to tell is this is an escape for a control character or if I'm actually sending a backslash and an 'r'?
Jay
1

votes
2

answer
150

Views

newman execution throwing TypeError: newman.run is not a function

I have newman 3.9.3 version installed on my ubuntu box. Want to execute multiple collections from a folder but executing js file through me wired error saying TypeError: newman.run is not a function. Here is my execution script. Any help will be appreciated. #!/usr/bin/env node var newman = require...
Terry
1

votes
1

answer
455

Views

Spring Boot MultiValueMap parameters in Postman

I have implemented OAuth2 in Spring boot. It works well when testing it in JUnit but I always get unauthorized when I try the API in postman. test function in JUnit: private String obtainAccessToken(String username, String password) throws Exception { final MultiValueMap params = new LinkedMultiValu...
Eniss
1

votes
0

answer
188

Views

How to remove charset=utf8 from Content-Type header response

I am using maven application with spring tools. When posting a request with postman I am getting 'Content-Type application/fhir+json;charset=UTF-8' in my response. I want to get Content-Type without 'charset=UTF-8'.
MADH
1

votes
0

answer
1.3k

Views

How do I authenticate proxy network when using postman native App?

I am using postman native app on windows machine(Version 6.0.9). There is no option for me to set proxy user name and password under settings>>Proxy. only i have an option set Proxy Server. Also postman app is not taking chrome/system proxy authentication settings unlike Postman extension. Hence i a...
Shivaraja A N
1

votes
1

answer
273

Views

Quickbooks Online API Oauth2.0 using httr

I am trying to access the QuickBooks online API via R. Here is what I have so far: library(httr) library(httpuv) endPoint
bneelon
1

votes
0

answer
55

Views

Coinbase [List Transactions Call] returning 404 Error

Struggling with verifying Coinbase API calls in Postman. I'm able to make the following call in Postman successfully: GET https://api.coinbase.com/v2/accounts/:account_id But when i do the next one: GET https://api.coinbase.com/v2/accounts/:account_id/transactions it returns the following error: { '...
majumba
1

votes
1

answer
668

Views

Request Access Token in Postman for Azure Function App protected by Azure AD B2C

I have an AspNetCore 2.0 MVC web API secured by an Azure Active Directory B2C tenant. I have been able to use Postman to test the API end points by following this SO posting: Request Access Token in Postman for Azure AD B2C (in particular, the Microsoft documented steps referenced in SpottedMahn's...
ubienewbie
1

votes
1

answer
56

Views

How to know whether a email address exists on Elasticsearch?

So I have added some data (email address with name) on elasticsearch . Now want to verify a particular email address is exists or not . Below is the code which I have Executed via Postman : **URL :** localhost:9200/demo1/demo_emails/_bulk (Put request) **Raw Data (json) :** { 'create' : { '_index'...
Rahul_Rdr
1

votes
1

answer
183

Views

Calling Twitter API results in “Timestamp out of bounds” Error

I am calling Twitter for fetching user Timeline Details. Here is my code $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS =>...
John Doe

View additional questions