Contains all of the commands for the hexios plugin.
- Copyright:
- Copyright © 2023-… by Seth Hollingsead. All rights reserved
- Source:
Requires
- module:plugin.constants
- @haystacks/async
- @haystacks/constants
- path
Methods
(inner) buildApiActionFunction(inputData, inputMetaData) → {array.<boolean, object>}
Creates a function that can be used to generate an api action function that will execute an action against an API interface of some kind.
Parameters:
| Name | Type | Description |
|---|---|---|
inputData |
array.<string> | An array that could actually contain anything, depending on what the user entered. But the function filters all of that internally and extracts the case the user has entered a list of meta-data that should be used for construction of the api action. inputData[0] = 'buildApiActionFunction' inputData[1] = api call inputData[2] = call header inputData[3] = call body inputData[4] = call footer |
inputMetaData |
string | Not used for this command. |
Returns:
An array that contains a boolean to indicate that the application should not exit, and a JSON response body object.
- Type
- array.<boolean, object>