Add orval and backend integration
This commit is contained in:
11
app/composeables/api/models/index.ts
Normal file
11
app/composeables/api/models/index.ts
Normal file
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.16.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI definition
|
||||
* OpenAPI spec version: v0
|
||||
*/
|
||||
|
||||
export * from './playlistCreateDTO';
|
||||
export * from './playlistReadDTO';
|
||||
export * from './readParams';
|
||||
export * from './uploadBody';
|
||||
10
app/composeables/api/models/playlistCreateDTO.ts
Normal file
10
app/composeables/api/models/playlistCreateDTO.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by orval v7.16.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI definition
|
||||
* OpenAPI spec version: v0
|
||||
*/
|
||||
|
||||
export interface PlaylistCreateDTO {
|
||||
title?: string;
|
||||
}
|
||||
14
app/composeables/api/models/playlistReadDTO.ts
Normal file
14
app/composeables/api/models/playlistReadDTO.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.16.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI definition
|
||||
* OpenAPI spec version: v0
|
||||
*/
|
||||
|
||||
export interface PlaylistReadDTO {
|
||||
id?: number;
|
||||
ownerId?: number;
|
||||
title?: string;
|
||||
createdAt?: string;
|
||||
updatedAt?: string;
|
||||
}
|
||||
10
app/composeables/api/models/readParams.ts
Normal file
10
app/composeables/api/models/readParams.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by orval v7.16.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI definition
|
||||
* OpenAPI spec version: v0
|
||||
*/
|
||||
|
||||
export type ReadParams = {
|
||||
document: string;
|
||||
};
|
||||
10
app/composeables/api/models/uploadBody.ts
Normal file
10
app/composeables/api/models/uploadBody.ts
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by orval v7.16.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI definition
|
||||
* OpenAPI spec version: v0
|
||||
*/
|
||||
|
||||
export type UploadBody = {
|
||||
document: Blob;
|
||||
};
|
||||
Reference in New Issue
Block a user