This is POST method Request Body ,where I am trying to send special characters but I am getting error.
{
"name": "@!#%^#)(?><%$"*",
"description": "string",
}
ERROR :
{
"errors":
{
"name": [ "After parsing a value an unexpected character was encountered: *. Path 'name', line 2, position 14."
]
},
"title": "One or more validation errors occurred.",
"status": 400,
}
//This is my Get Method
[HttpGet]
public async Task<IActionResult> GetByNameAsync( [FromQuery] string name)
{
_service.GetByName(name)
return Ok();
}