You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-10-08 22:51:57 +02:00
63 lines
1.7 KiB
Plaintext
Vendored
63 lines
1.7 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 "/proj.melezh" \
|
|
--lib "telegram" \
|
|
--func "SendTextMessage" \
|
|
--method "get"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
melezh AddRequestsHandler ^
|
|
--proj "/proj.melezh" ^
|
|
--lib "telegram" ^
|
|
--func "SendTextMessage" ^
|
|
--method "get"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
```json title="Result"
|
|
{
|
|
"result": true,
|
|
"key": "be2122262",
|
|
"url_example": "localhost:port/be2122262"
|
|
}
|
|
```
|