Hello @Donald T Hess ! According to the HTTP/1.1 specification, GET requests should not have a message body. This is because GET is designed to retrieve information and should be idempotent (i.e., multiple identical requests should have the same effect as a single request). Including a body in a GET request can lead to unexpected behavior and is generally not recommended. However, if you must send sensitive data in the request without using query parameters, you should consider using a POST request instead. POST requests are designed to submit data and can have a request body. Here's an example of how you can modify your existing controller action to use POST:
[HttpPost("api/inventory/search")] // Change this to POST
[Produces("application/json")]
public async Task<IActionResult> SearchInventory(
[FromHeader] string tenant,
[FromBody] GetInventoryRequest inventoryReq) // FromBody should work with POST
{
// Your implementation here
}
I hope i helped ! Kindly mark the answer as accepted in case it helped you ! BR