/
index.ts
35 lines (31 loc) · 882 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { MethodMetadata, Parameter } from '..';
import { Headers } from '../../helpers/axios';
import { useRestCall } from '../../helpers/rest-calls';
const path = 'vesgo-transactions/:userProfileId';
export function useMethod({ pathParameters, body }: any) {
const { data, error, loading, getData } = useRestCall({
pathParameters,
headers: Headers,
body,
metadata,
});
return { data, error, loading, getData };
}
const parameters: Parameter[] = [
{
key: 1,
name: 'transactions',
description: 'transactions list',
required: 'yes',
default: '',
dataType: 'string'
},
];
export const metadata: MethodMetadata = {
author: 'Gabriela Golmar',
authorPicture: '',
description: 'This is our post vezgo transactions',
name: path,
method: 'POST',
parameters,
};