1
嗨,我是新來的servicestack 有問題,與路由 我有相匹配的路線Servicestack路由問題
[Route("/Person/{ID}", "GET")]
public class GetPersonByID : IReturn<PersonResponse>
{
public decimal ObjectId { get; set; }
}
[Route("/Organization/{ID}/Person", "GET")]
public class GetPersonByOrganizationId : List<PersonResponse>
{
public decimal ObjectId { get; set; }
}
但後來我試圖/Organization/281478302400588/Persons
,我得到一個錯誤說 Unable to bind request
堆棧跟蹤:在ServiceStack.Host.RestHandler.CreateRequest(IRequest httpReq, IRestPath restPath)在 ServiceStack.Host.RestHandler.ProcessRequestAsync(IRequest httpReq, IResponse httpRes,字符串operationName)
它的工作就像一個魅力 – 2014-11-25 23:10:29
@KennethFoliJørgensen太棒了,很高興幫助 – Scott 2014-11-25 23:11:58