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.

  1. we should use owinselfhost package self hosting.
  2. we should create class file inherits apicontroller.
  3. install cors package webapi application used client consume application.

hosting: domain name or ip should given service hosted.

reference example


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -