ImportService
Extends:
Service handling Import calls with specific endpoints.
Constructor Summary
Public Constructor | ||
public |
Update type to be dynamic_content__contents |
Method Summary
Public Methods | ||
public |
async getExampleFiles(options: Object): Promise<any[]> Gets example files for the bulk import |
Inherited Summary
From class AbstractService | ||
public get |
|
|
public set |
|
|
public |
|
|
private |
|
From class JsonApiService | ||
public |
options: * |
|
public |
Call a DELETE request on the main obj.type expecting JSON API information. |
|
public |
Call a GET request expecting JSON API information. |
|
public |
async getChildren(parent: Object, child: Object, options: String): Promise Call a GET request expecting JSON API information for children given a parent. |
|
public |
Call a POST request on the main obj.type expecting JSON API information. |
|
public |
Call a PATCH request on the main obj.type expecting JSON API information. |
Public Constructors
public constructor() source
Update type to be dynamic_content__contents
Override:
JsonApiService#constructorPublic Methods
public async getExampleFiles(options: Object): Promise<any[]> source
Gets example files for the bulk import
Throw:
If missing token or missing required parameters |
Example:
import { importService } from 'clinical6';
// You will be able to access the example files using the `getExampleFiles` method.
importService.getExampleFiles().then(files => console.log(files));