UNPKG

@tapis/tapisui-api

Version:

Typescript library for making api calls with react query

8 lines (7 loc) 339 B
import { Systems } from '@tapis/tapis-typescript'; import { apiGenerator, errorDecoder } from '../utils'; const makeNewSystem = (reqCreateSystem, basePath, jwt) => { const api = apiGenerator(Systems, Systems.SystemsApi, basePath, jwt); return errorDecoder(() => api.createSystem(reqCreateSystem)); }; export default makeNewSystem;