orval.config.ts 530 B

12345678910111213141516171819202122232425
  1. import { defineConfig } from 'orval'
  2. export default defineConfig({
  3. campusTrade: {
  4. input: {
  5. target: 'http://localhost:8090/v3/api-docs',
  6. },
  7. output: {
  8. mode: 'tags',
  9. client: 'axios',
  10. target: './src/api/endpoints/',
  11. schemas: './src/api/models',
  12. clean: true,
  13. override: {
  14. mutator: {
  15. path: './src/util/axios-instance.ts',
  16. name: 'customAxiosInstance',
  17. },
  18. },
  19. },
  20. hooks: {
  21. afterAllFilesWrite: 'prettier --write',
  22. },
  23. },
  24. })