!wip improved the api for the actor search

pull/2814/head
TidusJar 6 years ago
parent 76bfec1667
commit 183c242334

@ -54,13 +54,13 @@ namespace Ombi.Controllers
/// <summary> /// <summary>
/// Searches for movies by a certain actor. /// Searches for movies by a certain actor.
/// </summary> /// </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> /// <returns></returns>
[HttpPost("movie/actor")] [HttpPost("movie/actor")]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status400BadRequest)] [ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesDefaultResponseType] [ProducesDefaultResponseType]
public async Task<IActionResult> SearchActor([FromBody] SearchMovieRefineModel model) public async Task<IActionResult> SearchActor([FromBody] SearchActorModel model)
{ {
if (model == null) if (model == null)
{ {

@ -0,0 +1,8 @@
namespace Ombi.Models
{
public class SearchActorModel
{
public string SearchTerm { get; set; }
public string LanguageCode { get; set; } = "en";
}
}
Loading…
Cancel
Save