Base solution for your next web application
Open Closed

Do I need an Entity APPLICATION SERVICE for a Webapi? #1086


User avatar
0
mattdunndc created

Day 2 with APB! Making progress.

APB Best practice / architecture question: Do I need a Person APPLICATION SERVICE / interface for Person data coming from a WebAPI?

Thanks in advance.


4 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    No, you don't have to. You can create regular web api controllers as you always do. Dynamic web api from app services is a different approach. I like it since it's web api indepdendent, simple classes.

  • User Avatar
    0
    mattdunndc created

    Thanks! I've got the Application Service working from the Angular Client using IRepository/DTO's and I've also got the Odata sample working.

    I can't figure out how to get Odata feed working in my Angular controller. Does anyone have an example of using Odata with an Angular controller using the APB framework?

    Help! Happy to pay for someone's time.

    Best,

    Matt

  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    I haven't used it yet. But since OData and Angular is standard tools and not related to ABP, you may find much more information on the web.

  • User Avatar
    0
    mattdunndc created

    Thanks!