public function renewAppWebhook(Request $request, ApiApplication $application)
    {
        $this->assertJsonRequestFormat($request);

        if (null !== $request->request->get("webhook")) {
            $this->getApiApplicationManipulator()
                ->setWebhookUrl($application, $request->request->get("webhook"));
        } else {
            return $this->app->json(['success' => false]);
        }

        return $this->app->json(['success' => true]);
    }
public function renewAppWebhook(Request $request, ApiApplication $application)
    {
        $this->assertJsonRequestFormat($request);

        if (null !== $request->request->get("webhook")) {
            $this->getApiApplicationManipulator()
                ->setWebhookUrl($application, $request->request->get("webhook"));
        } else {
            return $this->app->json(['success' => false]);
        }

        return $this->app->json(['success' => true]);
    }
public function renewAppWebhook ( Request $ request , ApiApplication $ application ) { $ this -> assertJsonRequestFormat ( $ request ) ; if ( null !== $ request -> request -> get ( "webhook" ) ) { $ this -> getApiApplicationManipulator ( ) -> setWebhookUrl ( $ application , $ request -> request -> get ( "webhook" ) ) ; } else { return $ this -> app -> json ( [ 'success' => false ] ) ; } return $ this -> app -> json ( [ 'success' => true ] ) ; }
Change application webhook

@param Request        $request The current request
@param ApiApplication $application
@return JsonResponse
Change application webhook