Package Exports
- @nanoservice-ts/api-call
- @nanoservice-ts/api-call/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nanoservice-ts/api-call) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Configuration Options
The ApiCall node allows you to make an API call to any API endpoint
Node properties
Required properties
url *
(string): A string representing the MongoDB connection string. (Required)method *
(string): The name of the MongoDB database to delete. (Required)
Optional properties
headers
(Object): The headers of the request.body
(object): the body of the request.responseType
(string): the response type of the request.
Usage/Examples
Step Configuration
{
"name": "api-call",
"node": "api-call@1.0.0",
"type": "local"
}
Node Configuration
"api-call": {
"inputs": {
"properties": {
"url": "https://bp-firestore-stack.api-dev.deskree.com/api/v1/auth/accounts/sign-in/email",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer ${ctx.vars.authApiResponse.data.idToken}"
},
"body": {
"email": "email@email.com",
"password": "123password"
}
}
}
}