중첩 된 개체가있는 개체를 ASP.NET 웹 API GET 메서드에 전달하기위한 URL 구문은 무엇입니까? 이것이 가능한가? http://mydomain/mycontroller?...
중첩 된 복합 유형을 전달하기위한 REST URL 구문은 무엇입니까?
MYCONTROLLER GET 방법 :
public void Get([FromUri]MyType myType) { ... }
C 번호 유형 :
public class MyType
{
public string Name { get; set; }
public NestedType Foo { get; set; }
}
public class NestedType
{
public int Bar { get; set; }
}
이 흥미로운 관련 논의는 다음과 같습니다 http://stackoverflow.com/questions/7104578/rest-complex-composite-nested -resources – JayC