Nit-Picking Manager

    This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    @kachit/angular-api-query-builder
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.7 • Public • Published

    Angular API query builder module

    Npm badge NPM downloads npm License angular

    Angular API query filter builder

    npm i @kachit/angular-api-query-builder
    //app.module.ts
    import { ApiQueryBuilderModule } from '@kachit/angular-api-query-builder';
    
    @NgModule({
      imports: [
        ...
        ApiQueryBuilderModule,
      ],
    })
    export class AppModule { }
    
    
    //your-service-class.ts
    import { QueryBuilderService } from '@kachit/angular-api-query-builder';
    import { HttpClient } from '@angular/common/http';
    import { map } from 'rxjs/operators';
    
    let qb = new QueryBuilderService();
    let http = new HttpClient();
    let params = qb.eq('active', true).build();
    
    let url = 'http://api.your-domain.com/foo';
    let data = http.get(url, {params: params}).pipe(
        map((response) => { return response.data})
    );
    GET http://api.your-domain.com/foo?filter[$eq][active]=true

    Install

    npm i @kachit/angular-api-query-builder

    DownloadsWeekly Downloads

    0

    Version

    1.2.7

    License

    MIT

    Unpacked Size

    68 kB

    Total Files

    27

    Last publish

    Collaborators

    • kachit