を取得し、私は私のコントローラでは、このようなポストの方法があります:私は身体の文字列で闊歩/郵便配達を経由してポストをやっているとき"test"
その作業を投稿はヌル
public IActionResult Post([FromBody]string directoryPath)
{
_log.Debug($"Got ScanDirectory request for directoryPath:{directoryPath}");
if (string.IsNullOrEmpty(directoryPath))
{
return NotFound("DirectoryPath is empty");
}
}
をfineとdirectoryPathはテスト文字列を取得しましたが、私がこのようなパスをポストしているときには:"C:\Users\futerm\Downloads\test"
私はdirectoryPathに入っています。
なぜ私はswaggerの中にパスiで投稿できませんか?