1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/md/Addons/Melezh/Console-Interface/Handlers-configuration/Add-requests-handler.mdx
Vitaly the Alpaca (bot) 55b680dffe Main build (Jenkins)
2025-05-27 19:03:00 +03:00

63 lines
1.8 KiB
Plaintext
Vendored

---
sidebar_position: 1
description: Add request handler and other functions to work with Melezh in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# 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
<br/>
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
melezh AddRequestsHandler \
--proj "C:\Users\bayselonarrend\AppData\Local\Temp\anxujp4k.bmi" \
--lib "telegram" \
--func "SendTextMessage" \
--method "get"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
melezh AddRequestsHandler ^
--proj "C:\Users\bayselonarrend\AppData\Local\Temp\anxujp4k.bmi" ^
--lib "telegram" ^
--func "SendTextMessage" ^
--method "get"
```
</TabItem>
</Tabs>
```json title="Result"
{
"result": true,
"key": "4992c8a35",
"url_example": "localhost:port/4992c8a35"
}
```