.netasp.net-corepostmanasp.net-apicontroller

postman not passing more than 2 parameters to .net core api


I've a post request like below:

enter image description here

If I send the request in coding side I'm getting value only for the username and password. I'm not getting the DistrictUuid value to API. Please check the below image and let me know if there is any solution for it.

enter image description here


Solution

  • I added the request object in .net end point like this

     public class AuthenticateModel
        {
            public string Username;
            public string Password;
            public string DistrictId;
            public string ApplicationId;
         
        }
    

    enter image description here

    then sent the post request like this way with all small case

    enter image description here