UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

19 lines (16 loc) 434 B
import { Systems } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const details = ( params: Systems.GetSystemRequest, basePath: string, jwt: string ) => { const api: Systems.SystemsApi = apiGenerator<Systems.SystemsApi>( Systems, Systems.SystemsApi, basePath, jwt ); return errorDecoder<Systems.RespSystem>(() => api.getSystem(params)); }; export default details;