-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
bugSomething isn't workingSomething isn't working
Description
- ts生成时没有考虑路由参数的匹配
[ApiController]
public class TestController
{
[HttpGet("/Test/{id}")]
public void Test(string id)
{}
}- ts生成时delete参数可能位于body上,代码中只考虑了query
public class Test
{
public string Id{get;set;}
public string Name{get;set;}
}
[ApiController]
public class TestController
{
[HttpDelete("/Test")]
public void Test(Test test)
{}
}- ts生成时url路由规则只可能为/{prefix}/{controllerName}/{actionName},但apicontroller也有可能为自定义路由形式
public class Test
{
public string Id{get;set;}
public string Name{get;set;}
}
[ApiController]
[Route("/api/[controller]")
public class TestController
{
[HttpDelete("/Test")]
public void Test(Test test)
{}
}- ts生成时query参数也可能为复杂类型,但该方法不支持生成
public class Test
{
public string Id{get;set;}
public string Name{get;set;}
}
[ApiController]
public class TestController
{
[HttpGet("/Test")]
public void Test([FromQuery]Test test)
{}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working