-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into luchobackend
- Loading branch information
Showing
21 changed files
with
262 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
Back-End/app/src/main/java/com/web/app/dto/album/AlbumRequest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Back-End/app/src/main/java/com/web/app/dto/album/ShortAlbumResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,29 @@ | ||
package com.web.app.dto.album; | ||
|
||
import com.web.app.dto.artist.ShortArtistResponse; | ||
import com.web.app.dto.track.ShortTrackResponse; | ||
import io.swagger.v3.oas.annotations.media.ArraySchema; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
|
||
public record ShortAlbumResponse( | ||
@Schema(example = "15103893") | ||
Long id, | ||
|
||
@Schema(example = "Faded") | ||
String name, | ||
|
||
@Schema(example = "2015-12-04") | ||
String releaseDate, | ||
|
||
@Schema(example = "https://api.deezer.com/album/15103893/image") | ||
String pictureUrl, | ||
|
||
@ArraySchema(schema = @Schema(examples = {"Electro", "Techno/House", "Dance"})) | ||
List<String> genres, | ||
|
||
ShortArtistResponse artist | ||
) { | ||
} |
9 changes: 9 additions & 0 deletions
9
Back-End/app/src/main/java/com/web/app/dto/artist/ShortArtistResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
package com.web.app.dto.artist; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public record ShortArtistResponse( | ||
@Schema(example = "4999707") | ||
Long id, | ||
|
||
@Schema(example = "Alan Walker") | ||
String name, | ||
|
||
@Schema(example = "https://api.deezer.com/artist/4999707/image") | ||
String pictureUrl, | ||
|
||
@Schema(example = "3914389") | ||
Long fanNum | ||
) {} |
17 changes: 17 additions & 0 deletions
17
Back-End/app/src/main/java/com/web/app/dto/search/db/SearchDBResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.web.app.dto.search.db; | ||
|
||
public record SearchDBResponse( | ||
String track, | ||
String album, | ||
String picture_url, | ||
String type, | ||
Long id | ||
) { | ||
// public SearchDBResponse(String track, String album, String pictureUrl, String type, Long id) { | ||
// this.track = track; | ||
// this.album = album; | ||
// this.pictureUrl = pictureUrl; | ||
// this.type = type; | ||
// this.id = id; | ||
// } | ||
} |
18 changes: 18 additions & 0 deletions
18
Back-End/app/src/main/java/com/web/app/dto/search/db/SearchDBResponseProjection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.web.app.dto.search.db; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
public interface SearchDBResponseProjection { | ||
@Schema(example = "Nueva Era") | ||
String getTrack(); | ||
@Schema(example = "AMERI") | ||
String getAlbum(); | ||
@Schema(example = "DUKI") | ||
String getArtist(); | ||
@Schema(example = "https://api.deezer.com/album/664113131/image") | ||
String getPicture_url(); | ||
@Schema(example = "track") | ||
String getType(); | ||
@Schema(example = "3069012151") | ||
Long getId(); | ||
} |
Oops, something went wrong.