2.1.0 • Published 6 years ago

@bb-cli/lib-bb-portal-rest-nodejs-plugin v2.1.0

Weekly downloads
864
License
SEE LICENSE IN LI...
Repository
-
Last release
6 years ago

Members

Typedefs

default ⇒

Kind: global variable
Returns: NodeJSAdapter Adapter API

ParamTypeDescription
logFunctionfunctionfunction to use for logging

requestCallback ⇒ Response

Executes http request.

Kind: global typedef
Returns: Response - response object

ParamTypeDescription
configobjecthttp request configuration
config.urlstringtarget url
config.methodstringhttp method
config.queryobjecthttp param query hash
config.headersobjectheaders hash
config.importFilestringpath of the file to upload
config.exportFilestringpath of the file to download to
config.formFieldstringname of the form field for upload
payloadstringxml string or path of xml file to sent as request body

NodeJSAdapter : object

Kind: global typedef
Properties

NameTypeDescription
requestrequestCallbackhttp request method
loglogCallbacklog method
btoabtoaCallbackbase64 string convert method
DOMParserDOMParserDOMParser API

logCallback : function

logs message with header

Kind: global typedef

ParamTypeDescription
headerstringtitle of the message
messagestringmessage to log

btoaCallback ⇒ string

returns a base-64 encoded ASCII string from a String object

Kind: global typedef
Returns: string - encodedString

ParamTypeDescription
stringstringto encode

Response : object

Kind: global typedef
Properties

NameTypeDescription
statusnumberhttp status code
statusTextstringhttp status text
headersobjecthttp response headers
bodystringhttp response body
2.1.0

6 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

2.0.0-pr.0

7 years ago

1.0.1

7 years ago

1.0.1-pr.1

7 years ago