Using WebApi

Discussion in 'General troubleshooting' started by SlyGuy, Feb 1, 2016.

  1. my site uses an AngularJS controller with the ng-resource directive to call a RESTful controller using WebAPI
    The issue I'm having is undoubtedly that I've never been in charge of deploying anything. So, I'm not sure how to configure the webservice project and web project so that the web project talks to the service.
    I am publishing to:

    The limited information I was given from support would suggest that the route is:

    In my dev environment, which works fine, I point to local host with the correct port number. e.g., http://localhost:99999/api/sports/sports. This works fine.

    What I need to figure out is the equivalent of the URI for the localhost:99999 above. Appreciate any assistance.
  2. Did you get your answer in configuring webAPI at winhost? more than 3 years later the information still appears scant.
  3. Elshadriel

    Elshadriel Winhost Staff

    Sorry for the late reply. I probably missed this post, but the only thing that stands out to me is the port number. You'll have to communicate on port 80 since that's the only port that is exposed. Also, I wasn't sure if you were talking about a webservice or WebAPI. They are a bit different. I'm also more familiar with WebAPI than a webservice.
  4. How do I configure webapi? I have the webapi at and when I try to type in the url, I am redirected to
  5. Elshadriel

    Elshadriel Winhost Staff

Share This Page