FromBody string parameter is giving null

By declaring the jsonString parameter with [FromBody] you tell ASP.NET Core to use the input formatter to bind the provided JSON (or XML) to a model. So your test should work, if you provide a simple model class public class MyModel { public string Key {get; set;} } [Route(“Edit/Test”)] [HttpPost] public void Test(int id, [FromBody] … Read more

How to send graphql query by postman?

There’s a better way to do it using the REST client Insomnia Docs are here, how to send graphql queries: https://support.insomnia.rest/article/61-graphql Below are the steps for postman Step 1. Run the GraphiQL in Chrome, open the Chrome Dev Console, click the Network tab, and make the query from graphiql, when you make the query, network … Read more

Using Postman to access OAuth 2.0 Google APIs

Postman will query Google API impersonating a Web Application Generate an OAuth 2.0 token: Ensure that the Google APIs are enabled Create an OAuth 2.0 client ID Go to Google Console -> API -> OAuth consent screen Add getpostman.com to the Authorized domains. Click Save. Go to Google Console -> API -> Credentials Click ‘Create … Read more

Sending cookies with postman

I used the postman chrome extension until it became deprecated. Chrome extension is also less usable and powerful than the native postman application. Hence it became very inconvenient to use the chrome extension. I have found another approach: copy any request in chrome/any other browser as a CURL request import to postman copied request save … Read more

Where are Postman collections saved?

It looks like Postman uses LevelDB. On Windows, I found my Postman DB located at: %HOMEPATH%\AppData\Roaming\Postman\IndexedDB\ ps: %HOMEPATH% is path for C:\Users\xxxx\ also worth mentioning: %APPDATA% is a shortcut for C:\Users\xxxx\AppData\Roaming\ According to Piere F, macOS users can find it under: ~/Library/Application Support/Postman/IndexedDB ps: Note ~ is path for /Users/userAccount/ According to David, Ubuntu users … Read more

How do I format {{$timestamp}} as MM/DD/YYYY in Postman?

You could use moment.js with Postman to give you that timestamp format. You can add this to the pre-request script: const moment = require(‘moment’); pm.globals.set(“today”, moment().format(“MM/DD/YYYY”)); Then reference {{today}} where ever you need it. If you add this to the Collection Level Pre-request Script, it will be run for each request in the Collection. Rather … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)