-
-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
Description
We have the following definition of an api-endpoint:
Task TransferFormatsAsync([Body] IReadOnlyCollection<ProductionManagerFormat> formats);
When we call this endpoint, like this (with collection expressions) we get 200 OK, but in the web server logs I can see that RestEase is not sending a body (it's empty):
await _api.TransferFormatsAsync([new ProductionManagerFormat("A4", 200, 300)];
To Reproduce
public interface IProductionManagerApi
{
[Post("api/TransferFormats")]
Task TransferFormatsAsync([Body] IReadOnlyCollection<ProductionManagerFormat> formats);
}e.q in a controller call the api:
public void MyController (IProductionManagerApi _productionManagerApi) : ApiController
{
[HttpGet]
async Task TestAsync()
{
await _productionManagerApi.TransferFormatsAsync([new ProductionManagerFormat("A4", 200, 300)]);
}
}Version Info
- RestEase version: 1.6.4
- Target framework version: .net 9
Metadata
Metadata
Assignees
Labels
No labels