@tramvai/papi 1.58.1 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -5
- package/package.json +1 -1
- package/README.en.md +0 -28
package/README.md
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
---
|
|
2
|
+
title: '@tramvai/papi'
|
|
3
|
+
sidebar_position: 4
|
|
4
|
+
---
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
# Papi
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
Library for creating and working with papi handlers.
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
You need to install `@tramvai/papi`
|
|
8
13
|
|
|
9
14
|
```bash
|
|
10
15
|
yarn add @tramvai/module-papi
|
|
11
16
|
```
|
|
12
17
|
|
|
13
|
-
##
|
|
18
|
+
## Usage
|
|
14
19
|
|
|
15
20
|
```tsx
|
|
16
21
|
import { createPapiMethod } from '@tramvai/papi';
|
package/package.json
CHANGED
package/README.en.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# @tramvai/papi
|
|
2
|
-
|
|
3
|
-
Library for creating and working with papi handlers.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
You need to install `@tramvai/papi`
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
yarn add @tramvai/module-papi
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import { createPapiMethod } from '@tramvai/papi';
|
|
17
|
-
|
|
18
|
-
export const papi = createPapiMethod({
|
|
19
|
-
path: '/my/papi',
|
|
20
|
-
method: 'post',
|
|
21
|
-
async handler(deps) {
|
|
22
|
-
return 'test';
|
|
23
|
-
},
|
|
24
|
-
deps: {
|
|
25
|
-
tinkoffApiService: TINKOFF_API_SERVICE,
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
```
|