Category "postman"

Add header to every request in Postman in pre-request script

I want to automatically add a header to every request in my whole collection using this pre-request script: pm.request.headers.add({ 'key': "myvar", 'v

Postman - dynamic variable for a value from array

How could I add an automatic environmental variable in Postman based on a value which is appearing in the endpoint response in the array? In the example below,

"token contains an invalid number of segments"

I am seeing this error when I try to hit endpoint using postman: { "errors": [ "token contains an invalid number of segments" ] } Console: Typ

How do I invoke a postman-defined request within a postman pre-request script?

All examples I've seen of calling a REST API within a Pre-Request script use the http API pm.sendRequest(). I'd much rather 'submit' a request that is defined t

How to increase the font size of the request in postman tool?

I am using Postman tool for hitting the REST api with request and response. I want to increase the font size of the request. Under Settings there seem to be jus

FastAPI - Postman error 422 Unprocessable Entity

I am using FastAPI to make get/post/put/del requests, which all work perfectly fine in the browser. I wanted to use Postman to do the exact same thing; however,

403 forbidden error when accessing API with X-API-KEY authentication

I stumbled upon an error when trying to access “EDQM Standard Terms” dictionary via API — this is a dictionary of various pharmaceutical formu

The Authorization header is missing

I am getting this error :{"error":{"code":"AuthenticationFailed","message":"Authentication failed. The 'Authorization' header is missing."}} whenever I am tryin

FastAPI - How to upload file via form

I am making a REST API that requires uploading files. For testing purposes, I am uploading files through postman, but I don't know how to access the files on se

Symfony post request body parameters?

I'm sending POST request by postman with header application/json and the body: { "name": "user" } And when I try to get this parameter from the request obj

Postman returns null when using POST (Spring Boot)

** Update Updated the input in Postman: { "firstName": "Thierry", "lastName": "Blossom", "dateOfBirth": "1981-01-20", "email": "thierry@gmai