我有一个简单的会话对象,看起来像这样
[Route("/Session", Summary = "Creates a security session", Notes = "Some session related notes here")]
public class Session : IReturn<SessionResponse>
{
[ApiMember(Name = "DomainName", Description = "The Security Domain", ParameterType = "path", DataType = "string", IsRequired = true)]
public string DomainName { get; set; }
[ApiMember(Name = "UserName", Description = "The User Name", ParameterType = "path", DataType = "string", IsRequired = true)]
public string UserName { get; set; }
[ApiMember(Name = "Password", Description = "The password", ParameterType = "path", DataType = "string", IsRequired = true)]
public string Password { get; set; }
}
当我去大摇大摆的 UI 时,我可以看到元素
但是,当我输入元素并按 Try it now 时,我看到请求内容没有发送到服务器。
我是否使用 parameterType="path" 正确配置了我的 poco,还是应该在这里做其他事情?请指教。