Open Closed

Impelmenting RESTful datasource #64


User avatar
0
rashed created

I have external Data source that provide REST services used for mobile application and I want to manage this datasource from inside ABP solution Ex: https://api.backendless.com/{APIkey}/{app key}/data/Merchant and I want to implement some screens inside ABP that consume these REST services and use ApplicationService and crud features in CrudAppService

that can't be done without using a class that implement IEntity which I can't do as the data is not in ABP database

what should I do


3 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    don't use CrudAppService if you don't have an entity. you need to create normal AppService

    public class MyAppService : ApplicationService, IMyAppService
    {    
        public async Task DoWorkAsync(DoWorkInput input)
        {
             await _yourWebService.DoWorkAsync(input.myValue);
        }
    }
    
    
  • User Avatar
    0
    rashed created

    Yes but in that Case I lost a lot of powerful functionalities that CrudService provide .

    My question is how can I use most of its functionalties like paging ,sorting , filtering ,..

    There is a solution is to build a service like crud service but without the required params for Entities

    I'm asking if there is something already existed that can help

  • User Avatar
    0
    alper created
    Support Team Director

    there's no way to use CrudService without an IEntity derivation. you need to make paging sorting filtering manually

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11