UNPKG

baasic-sdk-angularjs

Version:

AngularJS SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).

82 lines (41 loc) 1.42 kB
# baasicApiService This service is used to perform low level model or option transformations before they are sent to the Baasic back-end. * * * ### baasicApiService.findParams() Parses Baasic Api pagination, sorting and search parameters. **Example**: ```js baasicApiService.findParams({ pageNumber:1, pageSize:10 }); ``` ### baasicApiService.getParams() Parses specified key parameters; initial object can be expanded with additional parameters. **Example**: ```js baasicApiService.getParams(( '<value>', {additionalOptions: '<option>'}, '<property-name>' )); ``` ### baasicApiService.createParams() Performs create resource transforms on an object so that it can be safely expanded with additional properties. **Example**: ```js baasicApiService.createParams({}); ``` ### baasicApiService.updateParams() Performs update resource transforms on transforms an object so that it can be safely expanded with additional properties. **Example**: ```js baasicApiService.updateParams({}); ``` ### baasicApiService.removeParams() Performs remove resource transforms on transforms an object so that it can be safely expanded with additional properties. **Example**: ```js baasicApiService.removeParams({}); ``` * * *