0
私のコントローラには以下のようなAPIアクションがあります。Web API Route Configを設定しています
[RoutePrefix("api/export")]
public class ExportController : ApiController
{
[HttpPost]
public HttpResponseMessage Report([FromBody]ReportInput input, string reportType)
{
}
}
そして、このようなルート設定に設定を追加しました。
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{action}/{reportType}",
defaults : new {reportType = RouteParameter.Optional}
);
私は以下のAPI URLを呼び出すことはできません。どの設定を行う必要がありますか?
localhost:50773/api/export/report/InsuranceHandlingFiles