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

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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);
        }
    }
    
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • 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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.