Add orval and backend integration

This commit is contained in:
2025-11-11 19:53:09 +05:00
parent f56a235e86
commit 3186fa16e5
17 changed files with 1174 additions and 86 deletions

34
orval.config.js Normal file
View File

@ -0,0 +1,34 @@
import { defineConfig } from 'orval';
import * as dotenv from 'dotenv';
dotenv.config();
export default defineConfig({
'mp3-composer': {
input: {
target: 'http://localhost:8080/v3/api-docs',
parserOptions: {
resolve: {
http: {
headers: {
Authorization:
'Basic ' + Buffer.from(`${process.env.API_USERNAME}:${process.env.API_PASSWORD}`).toString('base64'),
},
},
},
},
},
output: {
target: './app/composeables/api/composer.ts',
schemas: './app/composeables/api/models',
mode: 'tags-split',
client: 'vue-query',
override: {
mutator: {
path: './app/composeables/api/axios-instance.ts',
name: 'axiosInstance',
},
},
}
},
});