I have seen many articles in Internet to create RESTFUL webapi by selecting webapi project as project type. Is there any possibility that we can create the same using consol
Yes, there is a possibility. but we need to flow some steps to achieve this.
Hosting: domain name or IP should be given where the service is hosted.
Reference Example