Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Pure REST Service #1752


User avatar
0
felixbeltran created

Hi,

I would like to develop a REST service to be used not from the application layer, but from an external App, for example, a mobile App. What should I do?

Trying to consume a REST service usgin ASP.NET Web API from ABP doesn't seem to work right out of the box. I get an 500 error.

Thanks, Felix.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    In fact, you should be able to use your AppServices from external apps like a mobile app. You need to use token based auth for that <a class="postlink" href="https://www.aspnetzero.com/Documents/Development-Guide#token-based-authentication">https://www.aspnetzero.com/Documents/De ... entication</a> (I assume your AppServices needs requests to be authanticated.)

    And you can check the Logs.txt file in our Web project to see error details. It must be located under Logs folder or App_Data folder of your web app (It changes according to your AspNet Zero version).

  • User Avatar
    0
    felixbeltran created

    Hi,

    Thanks for the info, it was useful.

    Regards, Felix.