주소
-
[ASP.Net Core API] API 주소 설정Microsoft .NET/ASP.Net & ASP.Net Core 2020. 9. 17. 22:29
Controller 주소 및 API 주소 일괄 설정 - Controller Class 상단에 표기 ControllerClass 명칭 과 API함수 명칭을 자동으로 주소로 사용 : [Route("[controller]/[action]")] Ex) sample/member 더보기 [Route("[controller]/[action]")] [ApiController] public class sampleController : ControllerBase { //// GET: sample/member [HttpGet] public string member() { return "Virtualgiraffe"; } } Controller 주소 설정 - Controller Class 상단에 표기 Controller Cla..