V0.1.20 #80

Merged
kdeng00 merged 11 commits from v0.1.20 into pre-release 2022-09-05 17:12:57 -04:00
5 changed files with 6 additions and 12 deletions
Showing only changes of commit 73bfff3940 - Show all commits
+2 -2
View File
@@ -39,7 +39,7 @@ namespace Icarus.Controllers.V1
#region HTTP Routes
[HttpGet]
public IActionResult RetrieveGenres()
public IActionResult GetGenres()
{
var genres = new List<Genre>();
@@ -54,7 +54,7 @@ namespace Icarus.Controllers.V1
}
[HttpGet("{id}")]
public IActionResult RetrieveGenre(int id)
public IActionResult GetGenre(int id)
{
var genre = new Genre
{
@@ -46,7 +46,7 @@ namespace Icarus.Controllers.V1
#region API Routes
[HttpGet("{id}")]
public async Task<IActionResult> Get(int id)
public async Task<IActionResult> DownloadCompressedSong(int id)
{
var context = new SongContext(_connectionString);
+2 -2
View File
@@ -48,7 +48,7 @@ namespace Icarus.Controllers.V1
[HttpGet]
public IActionResult RetrieveSongs()
public IActionResult GetSongs()
{
List<Song> songs = new List<Song>();
Console.WriteLine("Attemtping to retrieve songs");
@@ -65,7 +65,7 @@ namespace Icarus.Controllers.V1
}
[HttpGet("{id}")]
public IActionResult RetrieveSong(int id)
public IActionResult GetSong(int id)
{
var context = new SongContext(_connectionString);
+1 -6
View File
@@ -48,7 +48,6 @@ namespace Icarus.Controllers.V1
[HttpGet("download/{id}")]
// [Route("private-scoped")]
public IActionResult Download(int id)
{
var songContext = new SongContext(_connectionString);
@@ -72,8 +71,6 @@ namespace Icarus.Controllers.V1
// Cover art
//
[HttpPost("upload"), DisableRequestSizeLimit]
// [ConflictingActionsResolver]
// [Route("private-scoped")]
public IActionResult Upload([FromForm(Name = "file")] List<IFormFile> songData)
{
try
@@ -110,8 +107,6 @@ namespace Icarus.Controllers.V1
// as well as the cover art
//
[HttpPost("upload/with/data")]
// [ConflictingActionsResolver]
// [Route("private-scoped")]
public IActionResult UploadWithData([FromForm] UploadSongWithDataForm up)
{
try
@@ -162,7 +157,7 @@ namespace Icarus.Controllers.V1
{
[FromForm(Name = "file")]
public IFormFile SongData { get; set; }
// TODO: Think about making this optional and if it is not provided, use the stock cover art
// NOTE: Think about making this optional and if it is not provided, use the stock cover art
[FromForm(Name = "cover")]
public IFormFile CoverArtData { get; set; }
[FromForm(Name = "metadata")]
-1
View File
@@ -44,7 +44,6 @@ namespace Icarus.Controllers.V1
#region HTTP endpoints
// [HttpGet]
[HttpGet("{id}")]
public async Task<IActionResult> StreamSong(int id)
{