I want to add an attribute to make my swagger know that the two parameters 
for my POST method are required. They are retrieved from the URI from the 
query string. This is my method declaration for the POST method.

        [HttpPost]
        [ProducesResponseType(typeof(Users), 201)]
        [ProducesResponseType(422)]
        public IActionResult Post([FromQuery] string name, [FromQuery] 
string email)
        {


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to