diff --git a/client/src/api.ts b/client/src/api.ts index 431ce8a..994e166 100644 --- a/client/src/api.ts +++ b/client/src/api.ts @@ -187,6 +187,22 @@ export function checkModifySongRequest(req: any): boolean { return true; } +// Create a new album (POST). +export const CreateAlbumEndpoint = '/album'; +export interface CreateAlbumRequest { + name: String; + tagIds?: Number[]; + artistIds?: Number[]; + storeLinks?: String[]; +} +export interface CreateAlbumResponse { + id: Number; +} +export function checkCreateAlbumRequest(req: any): boolean { + return "body" in req && + "name" in req.body; +} + // Create a new artist (POST). export const CreateArtistEndpoint = '/artist'; export interface CreateArtistRequest {