postman

Passing List object and int to web api

大兔子大兔子 提交于 2021-01-28 22:47:46
问题 I have a web api core project that if I send just the list parameter than the API receives the values, however if I send both parameters that the controller is looking for then both parameters are seen as null My contoller: [HttpPost] [Route("/jobApi/RunBD")] public int RunBDReport([FromBody]int month, [FromBody] IEnumerable<ClientModel> clients) { billingDetailCycle objBillDetail = new billingDetailCycle(); if (ModelState.IsValid) { return objBillDetail.Run(clients.ToList(), month); } else {

OneDrive OAuth 2.0 and Postman Sanity Check

二次信任 提交于 2021-01-28 21:41:19
问题 I am trying to generate a OAuth Token for OneDrive by using Postman. I just wanted to ask for clarification as to what the Auth URL, Access Token URL and scope would be? I have tried it with: Auth URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize Access Token URL: https://login.microsoftonline.com/common/oauth2/v2.0/token Scopes: wl.signin However, I keep getting an error around the scope is not correct. Just for sanity check are these the correct settings? 回答1: Please refer

Postman Testing - JSON - iterate over response with duplicate keys with different values

女生的网名这么多〃 提交于 2021-01-28 19:17:41
问题 I'm new to the postman testing and i have found this case. I have this response { "company": [ { "publicKey": "40", "mutkey": "13273811", "employee": [ { "publicKey": "3030", "mutkey": "13415424", "formattedName": "V Vierde", "contract": [ { "publicKey": "1", "mutkey": "13415424", "functionName": "***NO FUNCTION NAME FOUND***" } ] }, { "publicKey": "3040", "mutkey": "13415426", "formattedName": "V Vijfde", "contract": [ { "publicKey": "1", "mutkey": "13415426", "functionName": "***NO FUNCTION

How to post to MVC endpoint via postman with JSON object

折月煮酒 提交于 2021-01-28 07:05:58
问题 I have a JSON object and trying to have a post request to my API endpoint. In my Listing controller I have the following function [HttpPost] public async Task<IActionResult> Import(GetImportInput input) { return StatusCode(200); } GetImportInput.cs public string Name {get; set;} Postman details: ContentType = application/json Body = { "name" : "Rabbit" } When I put a breakpoint inside my Import method, the breakpoint hits, but the parameter input does not have the value Rabbit . May I ask how

How to generate future date and time for postman request

谁说胖子不能爱 提交于 2021-01-28 06:52:29
问题 { "name": "IronMan", "phone_number": "555555555", "number_of_guest": 10, "tables": [ 2 ], "reservation_start_at": "2020-10-15T10:00:00.861873Z", "reservation_end": "2020-10-15T11:00:00.861873Z" } I am stuck at step where I need to generate future date and time with time zone to send a postman request. The request is about a reservation feature. On the request body,a key-value is, reservation_start_at": "2020-10-15T10:00:00.861873Z My question is, how do I generate future date and time for

GET request working through Python but not through Postman

 ̄綄美尐妖づ 提交于 2021-01-28 06:33:48
问题 I am trying to use the Mailman 3 REST API, but I need to call it from Spring's Rest Template in a java class, or for testing purpose from Postman. In Python, I can call the API by: >>> from httplib2 import Http >>> headers = { ... 'Content-Type': 'application/x-www-form-urlencode', ... 'Authorization': 'Basic cmVzdGFkbWluOnJlc3RwYXNz', ... } >>> url = 'http://localhost:8001/3.0/domains' >>> response, content = Http().request(url, 'GET', None, headers) >>> print(response.status) 200 I want to

How to get Postman Environment and Postman Globals URLs for passing to Newman?

瘦欲@ 提交于 2021-01-28 06:13:59
问题 Newman help specifies that collection, environment and globals can be passed as a path or as a URL. I can see how to get a collection URL from Postman (by going to Share > Collection Link). How can I get the URLs to Environment and Globals in Postman, so I could pass them to newman? 回答1: Using Newman with the Postman Pro API: Generate an API key Fetch a list of your collections from: https://api.getpostman.com/collections?apikey=$apiKey Get the collection link via its UID: https://api

POSTMAN is returning date fields with changed values

為{幸葍}努か 提交于 2021-01-28 04:21:01
问题 I am consuming a REST service and I am receiving a JSON with date attributes that do not match what is in my database. I have two fields called "initialDate" and "finalDate". In the database they are like this: 07/MAR/19 00:00:00 07/SEP/19 23:59:59 The database timezone: select dbtimezone from dual; +00:00 In my object, inside the Java class, the content of the attributes comes as: public class Klass { @NotNull private Date initialDate; //initialDate.toString() "Thu Mar 07 00:00:00 CLT 2019"

How to generate code using Postman Collection

↘锁芯ラ 提交于 2021-01-28 04:02:44
问题 I'm aware it is possible to generate code snippets from individual Postman requests, but I can't find similar functionality for a entire collection. I also know that there are tools like newman for running an exported collection in Postman Collection 2.1 json format. But specifically what I'm looking for is a tool that generates bash code from a collection or from a exported collection in Postman Collection 2.1 json format. This way my co-workers who don't use Postman can replicate the API

How to generate code using Postman Collection

早过忘川 提交于 2021-01-28 03:49:58
问题 I'm aware it is possible to generate code snippets from individual Postman requests, but I can't find similar functionality for a entire collection. I also know that there are tools like newman for running an exported collection in Postman Collection 2.1 json format. But specifically what I'm looking for is a tool that generates bash code from a collection or from a exported collection in Postman Collection 2.1 json format. This way my co-workers who don't use Postman can replicate the API