fix(api): harden request submit path and errors
Use ApiClient server address for API calls, return 201 without CreatedAtAction route issues, and surface clearer validation messages when submit fails. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bfa8115fd0
commit
97619f1eb5
9 files changed
+92
-37
No files matched your search
@@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Jellyfin.Plugin.Request.Api;
|
||||
|
||||
@@ -11,13 +10,11 @@ public sealed class CreateRequestDto
|
||||
/// <summary>
|
||||
/// Gets or sets the media type (<c>movie</c> or <c>tv</c>).
|
||||
/// </summary>
|
||||
[Required]
|
||||
public string MediaType { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the TMDB identifier.
|
||||
/// </summary>
|
||||
[Range(1, int.MaxValue)]
|
||||
public int TmdbId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user