koel/app/Http/Controllers/API/MediaInformation/AlbumController.php
Phan An ab4f2210d1
API doc (#872)
* Add the API documentation

* Apply fixes from StyleCI (#871)
2018-12-09 22:24:43 +01:00

26 lines
571 B
PHP

<?php
namespace App\Http\Controllers\API\MediaInformation;
use App\Models\Album;
use Illuminate\Http\JsonResponse;
/**
* @group 5. Media information
*/
class AlbumController extends Controller
{
/**
* Get album's extra information.
*
* Get extra information about an album via Last.fm.
*
* @responseFile responses/mediaInformation.album.show.json
*
* @return JsonResponse
*/
public function show(Album $album)
{
return response()->json($this->mediaInformationService->getAlbumInformation($album));
}
}