İç içe geçmiş bir nesneyle bir nesneyi ASP.NET Web API GET yöntemime iletmek için kullanılan URL sözdizimi nedir? Mümkün mü? http://mydomain/mycontroller?...
Yuvalanmış bir karmaşık tür geçirme için REST URL sözdizimi nedir?
Mycontroller GET yöntemi:
public void Get([FromUri]MyType myType) { ... }
C# tipleri:
public class MyType
{
public string Name { get; set; }
public NestedType Foo { get; set; }
}
public class NestedType
{
public int Bar { get; set; }
}
Bu ilginç ilişkili tartışma benziyor: http://stackoverflow.com/questions/7104578/rest-complex-composite-nested -resources – JayC