Skip to content

services baasicApiService

mzilic edited this page May 20, 2015 · 11 revisions

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:

baasicApiService.findParams({
    pageNumber:1, 
    pageSize:10
});               

baasicApiService.getParams()

Parses specified key parameters; initial object can be expanded with additional parameters.

Example:

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:

baasicApiService.createParams({});               

baasicApiService.updateParams()

Performs update resource transforms on transforms an object so that it can be safely expanded with additional properties.

Example:

baasicApiService.updateParams({});               

baasicApiService.removeParams()

Performs remove resource transforms on transforms an object so that it can be safely expanded with additional properties.

Example:

baasicApiService.removeParams({});