Skip to main content

Add request handler

Adds a new handler to the project

Function AddRequestsHandler(Val Project, Val OintLibrary, Val OintFunction, Val Method = "GET") Export

ParameterCLI optionTypeRequiredDescription
Project--projStringProject filepath
OintLibrary--libStringLibrary name in CLI format
OintFunction--funcStringOpenIntegrations function name
Method--methodStringHTTP method to be processed by the handler: GET, JSON, FORM

Returns: Structure Of KeyAndValue - Result of handler modification


    melezh  AddRequestsHandler \
--proj "/proj.melezh" \
--lib "telegram" \
--func "SendTextMessage" \
--method "get"
Result
{
"result": true,
"key": "3c068dd20",
"url_example": "localhost:port/3c068dd20"
}