Checking API calls
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 37s
Music Collection CI Workflow / test (./frontend) (push) Successful in 40s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 56s
Music Collection CI Workflow / deploy (push) Has been cancelled
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been cancelled
Some checks failed
Music Collection CI Workflow / test (./backend) (push) Successful in 37s
Music Collection CI Workflow / test (./frontend) (push) Successful in 40s
Music Collection CI Workflow / build-and-push-images (./backend/Dockerfile, git.anatid.net/tabris/music-collection-backend, ./backend) (push) Successful in 56s
Music Collection CI Workflow / deploy (push) Has been cancelled
Music Collection CI Workflow / build-and-push-images (./frontend/Dockerfile, git.anatid.net/tabris/music-collection-frontend, ./frontend) (push) Has been cancelled
This commit is contained in:
parent
092ddcd11b
commit
d848973e19
@ -1,5 +1,15 @@
|
|||||||
|
import { IsNotEmpty, IsString } from 'class-validator';
|
||||||
|
|
||||||
export class CreateAlbumDto {
|
export class CreateAlbumDto {
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
artist: string;
|
artist: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
genre: string;
|
genre: string;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,21 @@
|
|||||||
|
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
|
||||||
|
|
||||||
export class UpdateAlbumDto {
|
export class UpdateAlbumDto {
|
||||||
|
@IsNumber()
|
||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
artist: string;
|
artist: string;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
genre: string;
|
genre: string;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,16 @@
|
|||||||
|
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
|
||||||
|
|
||||||
export class CreateSongDto {
|
export class CreateSongDto {
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
duration: number;
|
duration: number;
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
trackNumber: number;
|
trackNumber: number;
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
albumId: number;
|
albumId: number;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,19 @@
|
|||||||
|
import { IsNotEmpty, IsNumber, IsString } from 'class-validator';
|
||||||
|
|
||||||
export class UpdateSongDto {
|
export class UpdateSongDto {
|
||||||
|
@IsNumber()
|
||||||
id: number;
|
id: number;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
@IsNotEmpty()
|
||||||
title: string;
|
title: string;
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
duration: number;
|
duration: number;
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
trackNumber: number;
|
trackNumber: number;
|
||||||
|
|
||||||
|
@IsNumber()
|
||||||
albumId: number;
|
albumId: number;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user