mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
!wip improved the api for the actor search
This commit is contained in:
parent
76bfec1667
commit
183c242334
2 changed files with 10 additions and 2 deletions
|
@ -54,13 +54,13 @@ namespace Ombi.Controllers
|
|||
/// <summary>
|
||||
/// Searches for movies by a certain actor.
|
||||
/// </summary>
|
||||
/// <param name="model">The refinement model, language code and year are both optional. Language code uses ISO 639-1</param>
|
||||
/// <param name="model">language code is optional, by default it will be en. Language code uses ISO 639-1</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("movie/actor")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status400BadRequest)]
|
||||
[ProducesDefaultResponseType]
|
||||
public async Task<IActionResult> SearchActor([FromBody] SearchMovieRefineModel model)
|
||||
public async Task<IActionResult> SearchActor([FromBody] SearchActorModel model)
|
||||
{
|
||||
if (model == null)
|
||||
{
|
||||
|
|
8
src/Ombi/Models/SearchActorModel.cs
Normal file
8
src/Ombi/Models/SearchActorModel.cs
Normal file
|
@ -0,0 +1,8 @@
|
|||
namespace Ombi.Models
|
||||
{
|
||||
public class SearchActorModel
|
||||
{
|
||||
public string SearchTerm { get; set; }
|
||||
public string LanguageCode { get; set; } = "en";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue