jikan-rest/app/Http/Resources/V4/ExternalLinksResource.php
2022-02-11 18:31:14 +05:00

45 lines
980 B
PHP

<?php
namespace App\Http\Resources\V4;
use Illuminate\Http\Resources\Json\JsonResource;
class ExternalLinksResource extends JsonResource
{
/**
* @OA\Schema(
* schema="external_links",
* description="External links",
*
* @OA\Property(
* property="data",
* type="array",
*
* @OA\Items(
* type="object",
*
* @OA\Property(
* property="name",
* type="string",
* ),
* @OA\Property(
* property="url",
* type="string",
* ),
* ),
* ),
* )
*/
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return $this->external_links;
}
}