!wip improved the api for the actor search

This commit is contained in:
TidusJar 2019-01-23 13:49:26 +00:00
commit 183c242334
2 changed files with 10 additions and 2 deletions

View file

@ -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)
{

View file

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