Method Summary
Public Methods | ||
public |
Create new author |
|
public |
Fetch paginated author items |
|
public |
Fetch single author |
|
public |
Remove (delete) author |
|
public |
reset(): * |
|
public |
Run a query on the search endpoint. |
|
public |
Update existing author |
|
public |
updateAuthor(author: *): * |
|
public |
updateAuthors(authors: *): * |
|
public |
updatePagination(pagination: *): * |
Inherited Summary
From class BaseService | ||
public |
Preform a DELETE action |
|
public |
Preform a GET action |
|
public |
Preform a POST action |
|
public |
postUpload(url: string, data: object, params: object): object Preform a POST action |
|
public |
Preform a PUT action |
Public Methods
public fetch(opts: object): * source
Fetch paginated author items
Params:
Name | Type | Attribute | Description |
opts | object | Hash of query options |
Return:
* |
public fetchOne(id: string, opts: object, forceUpdate: Boolean): * source
Fetch single author
Return:
* |
public remove(id: string): * source
Remove (delete) author
Params:
Name | Type | Attribute | Description |
id | string |
Return:
* |
public search(opts: object): * source
Run a query on the search endpoint. See search docs for query info
Params:
Name | Type | Attribute | Description |
opts | object | Query has |
Return:
* |
public update(id: string, data: object, callback: Function): * source
Update existing author
Return:
* |
public updatePagination(pagination: *): * source
Params:
Name | Type | Attribute | Description |
pagination | * |
Return:
* |