c# - Create ASP.NET WEB API using Console application -
i have seen many articles in internet create restful webapi selecting webapi project project type. there possibility can create same using console application. if possible, how can hosted? how executable file gives url consume client application.
yes, there possibility. need flow steps achieve this.
- we should use owinselfhost package self hosting.
- we should create class file inherits apicontroller.
- install cors package webapi application used client consume application.
hosting: domain name or ip should given service hosted.
Comments
Post a Comment