I'm trying to pass data in POST request. In swagger, which runs automatically, they are passed, if you use POSTMAN or other client parameters are not passed. Thank you in advance for your help
[ApiController] public class UsersController { DatabaseContext context = new DatabaseContext(); [Route("loginUser")] [HttpPost] public string LoginUser(string email, string password) { # some logic } }
rawoption under theBodytab andPostedyourJSONbody to your API?