import { MethodMetadata, Parameter } from '../..'; import { useRestCall } from '../../../helpers/rest-calls'; const path = 'sync-vezgo/:userId'; 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: 'userId', description: 'User ID', required: 'yes', default: '', dataType: 'string', }, ]; export const metadata: MethodMetadata = { author: 'Aaron Knott', authorPicture: '', description: 'Initialize BE sync of Vezgo data', name: path, method: 'GET', parameters, };