Add request handler
Adds a new handler to the project
Function AddRequestsHandler(Val Project, Val OintLibrary, Val OintFunction, Val Method = "GET") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Project | --proj | String | ✔ | Project filepath |
| OintLibrary | --lib | String | ✔ | Library name in CLI format |
| OintFunction | --func | String | ✔ | OpenIntegrations function name |
| Method | --method | String | ✖ | HTTP method to be processed by the handler: GET, JSON, FORM |
Returns: Structure Of KeyAndValue - Result of handler modification
- Bash
- CMD/Bat
melezh AddRequestsHandler \
--proj "/proj.melezh" \
--lib "telegram" \
--func "SendTextMessage" \
--method "get"
melezh AddRequestsHandler ^
--proj "/proj.melezh" ^
--lib "telegram" ^
--func "SendTextMessage" ^
--method "get"
Result
{
"result": true,
"key": "cead35dfd",
"url_example": "localhost:port/cead35dfd"
}