ApiPlatform\Core\Tests\Fixtures\TestBundle\Controller\CustomController::customAction PHP Method

customAction() public method

public customAction ( integer $id ) : Symfony\Component\HttpFoundation\JsonResponse
$id integer
return Symfony\Component\HttpFoundation\JsonResponse
    public function customAction(int $id) : JsonResponse
    {
        return new JsonResponse(sprintf('This is a custom action for %d.', $id), 200, ['Content-Type' => 'application/ld+json; charset=utf-8']);
    }
CustomController