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