2.1.0 • Published 7 years ago
@bb-cli/lib-bb-portal-rest-nodejs-plugin v2.1.0
Members
Typedefs
default ⇒
Kind: global variable
Returns: NodeJSAdapter Adapter API
| Param | Type | Description |
|---|---|---|
| logFunction | function | function to use for logging |
requestCallback ⇒ Response
Executes http request.
Kind: global typedef
Returns: Response - response object
| Param | Type | Description |
|---|---|---|
| config | object | http request configuration |
| config.url | string | target url |
| config.method | string | http method |
| config.query | object | http param query hash |
| config.headers | object | headers hash |
| config.importFile | string | path of the file to upload |
| config.exportFile | string | path of the file to download to |
| config.formField | string | name of the form field for upload |
| payload | string | xml string or path of xml file to sent as request body |
NodeJSAdapter : object
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| request | requestCallback | http request method |
| log | logCallback | log method |
| btoa | btoaCallback | base64 string convert method |
| DOMParser | DOMParser | DOMParser API |
logCallback : function
logs message with header
Kind: global typedef
| Param | Type | Description |
|---|---|---|
| header | string | title of the message |
| message | string | message to log |
btoaCallback ⇒ string
returns a base-64 encoded ASCII string from a String object
Kind: global typedef
Returns: string - encodedString
| Param | Type | Description |
|---|---|---|
| string | string | to encode |
Response : object
Kind: global typedef
Properties
| Name | Type | Description |
|---|---|---|
| status | number | http status code |
| statusText | string | http status text |
| headers | object | http response headers |
| body | string | http response body |
2.1.0
7 years ago
2.0.2
8 years ago
2.0.1
8 years ago
2.0.0
8 years ago
2.0.0-pr.0
8 years ago
1.0.1
9 years ago
1.0.1-pr.1
9 years ago