Bånder

MovieController extends Controller
in package

Attributes
#[Middleware]
['auth:sanctum', 'ability:' . \App\Models\TokenAbility::ACCESS_API->value, 'force.json']
#[Prefix]
'/libraries/{library}/movies'

Table of Contents

Methods

index()  : AnonymousResourceCollection
Get a paginated collection of movies from a specific library
show()  : MovieResource
Get a specific movie with detailed information
denyWithStatus()  : mixed
gateCheckExecuteJob()  : mixed
gateCheckViewDashboard()  : mixed
noContent()  : mixed

Methods

index()

Get a paginated collection of movies from a specific library

public index(Library $library) : AnonymousResourceCollection

Returns a paginated list of all movies contained within the specified video library. Movies are filtered by the library to ensure only content from the requested library is returned.

Parameters
$library : Library

The video library to retrieve movies from

Tags
response

AnonymousResourceCollection<JsonPaginator<MovieResource>>

Attributes
#[Get]
'/'
'api.movies.index'
Return values
AnonymousResourceCollection

show()

Get a specific movie with detailed information

public show(Library $library, Movie $movie) : MovieResource

Retrieves a single movie from the specified library with comprehensive information including cast, crew, genres, technical details, and metadata.

Parameters
$library : Library

The library containing the movie

$movie : Movie

The movie to retrieve

Tags
throws
ModelNotFoundException

When a movie is not found in the library

response

MovieResource

Attributes
#[Get]
'{movie}'
'api.movies.show'
Return values
MovieResource

denyWithStatus()

protected denyWithStatus(string $message, int $status) : mixed
Parameters
$message : string
$status : int

gateCheckExecuteJob()

protected gateCheckExecuteJob() : mixed

gateCheckViewDashboard()

protected gateCheckViewDashboard() : mixed

        
On this page

Search results