2016-06-05 11:03:58 +00:00
|
|
|
<?php
|
|
|
|
|
2018-08-18 13:19:40 +00:00
|
|
|
namespace App\Http\Controllers\API\MediaInformation;
|
2016-06-05 11:03:58 +00:00
|
|
|
|
|
|
|
use App\Models\Artist;
|
2017-06-04 01:30:45 +00:00
|
|
|
use Illuminate\Http\JsonResponse;
|
2016-06-05 11:03:58 +00:00
|
|
|
|
2018-12-09 21:24:43 +00:00
|
|
|
/**
|
|
|
|
* @group 5. Media information
|
|
|
|
*/
|
2018-08-18 13:19:40 +00:00
|
|
|
class ArtistController extends Controller
|
2016-06-05 11:03:58 +00:00
|
|
|
{
|
|
|
|
/**
|
2020-04-07 21:41:30 +00:00
|
|
|
* Get artist's extra information.
|
2018-12-09 21:24:43 +00:00
|
|
|
*
|
2016-06-05 11:03:58 +00:00
|
|
|
* Get extra information about an artist via Last.fm.
|
|
|
|
*
|
2018-12-09 21:24:43 +00:00
|
|
|
* @responseFile responses/mediaInformation.artist.show.json
|
|
|
|
*
|
2017-06-04 01:30:45 +00:00
|
|
|
* @return JsonResponse
|
2016-06-05 11:03:58 +00:00
|
|
|
*/
|
2017-08-06 09:43:59 +00:00
|
|
|
public function show(Artist $artist)
|
2016-06-05 11:03:58 +00:00
|
|
|
{
|
2018-08-18 13:19:40 +00:00
|
|
|
return response()->json($this->mediaInformationService->getArtistInformation($artist));
|
2016-06-05 11:03:58 +00:00
|
|
|
}
|
|
|
|
}
|