-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
查询接口路由 #5
Comments
方法名称可以不一定,HttpGet("/cors")一样来区分 |
可以的,方法名不同就行 |
测试了不行啊。调用发生了AmbiguousActionException
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi 有个小问题想咨询一下,就是带参数的查询接口路由问题,我想征对一类数据做多种业务场景下的查询接口,如下面的接口就可以
http://10.169.42.116:1112/api/cors?coreSourceId=316000677
[HttpGet]
public IActionResult GetCOR([FromQuery(Name = "coreSourceId")] string coreSourceId)
{
return Ok(RealDataMapper.Instance.GetCORByCoreSourceId(coreSourceId));
}
The text was updated successfully, but these errors were encountered: