@tapis/tapisui-api
Version:
Typescript library for making api calls with react query
15 lines (12 loc) • 401 B
text/typescript
import { Workflows } from '@tapis/tapis-typescript';
import { apiGenerator, errorDecoder } from '../../utils';
const list = (basePath: string, jwt: string) => {
const api: Workflows.SecretsApi = apiGenerator<Workflows.SecretsApi>(
Workflows,
Workflows.SecretsApi,
basePath,
jwt
);
return errorDecoder<Workflows.RespSecretList>(() => api.listSecrets());
};
export default list;