16
ASP.NET 웹 API에서 여러 GET 메소드가있는 단일 컨트롤러
웹 API에서는 비슷한 구조의 클래스가 있습니다. public class SomeController : ApiController { [WebGet(UriTemplate = "{itemSource}/Items")] public SomeValue GetItems(CustomParam parameter) { ... } [WebGet(UriTemplate = "{itemSource}/Items/{parent}")] public SomeValue GetChildItems(CustomParam parameter, SomeObject parent) { ... } } 개별 방법을 매핑 할 수 있으므로 적절한 장소에서 올바른 요청을 얻는 것이 매우 간단했습니다. 단일 …
167
c#
asp.net-web-api