mirror of
https://github.com/koel/koel
synced 2024-12-23 19:13:06 +00:00
ab4f2210d1
* Add the API documentation * Apply fixes from StyleCI (#871)
26 lines
580 B
PHP
26 lines
580 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\MediaInformation;
|
|
|
|
use App\Models\Artist;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
/**
|
|
* @group 5. Media information
|
|
*/
|
|
class ArtistController extends Controller
|
|
{
|
|
/**
|
|
* Get artist's extra information.
|
|
*
|
|
* Get extra information about an artist via Last.fm.
|
|
*
|
|
* @responseFile responses/mediaInformation.artist.show.json
|
|
*
|
|
* @return JsonResponse
|
|
*/
|
|
public function show(Artist $artist)
|
|
{
|
|
return response()->json($this->mediaInformationService->getArtistInformation($artist));
|
|
}
|
|
}
|