PHP Class Aimeos\Shop\Controller\JsonadmController

Inheritance: extends Illuminate\Routing\Controller, use trait Illuminate\Foundation\Auth\Access\AuthorizesRequests
Exibir arquivo Open project: aimeos/aimeos-laravel

Public Methods

Method Description
deleteAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Deletes the resource object or a list of resource objects
getAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Returns the requested resource object or list of resource objects
optionsAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Returns the available HTTP verbs and the resource URLs
patchAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Updates a resource object or a list of resource objects
postAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Creates a new resource object or a list of resource objects
putAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Creates or updates a single resource object

Protected Methods

Method Description
createClient ( ) : Aimeos\Admin\JsonAdm\Iface Returns the JsonAdm client
createResponse ( string $content, integer $status, array $header ) : Illuminate\Http\Response Creates a new response object

Method Details

createClient() protected method

Returns the JsonAdm client
protected createClient ( ) : Aimeos\Admin\JsonAdm\Iface
return Aimeos\Admin\JsonAdm\Iface JsonAdm client

createResponse() protected method

Creates a new response object
protected createResponse ( string $content, integer $status, array $header ) : Illuminate\Http\Response
$content string Body of the HTTP response
$status integer HTTP status
$header array List of HTTP headers
return Illuminate\Http\Response HTTP response object

deleteAction() public method

Deletes the resource object or a list of resource objects
public deleteAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request Request object
return Illuminate\Http\Response Response object containing the generated output

getAction() public method

Returns the requested resource object or list of resource objects
public getAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request Request object
return Illuminate\Http\Response Response object containing the generated output

optionsAction() public method

Returns the available HTTP verbs and the resource URLs
public optionsAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request Request object
return Illuminate\Http\Response Response object containing the generated output

patchAction() public method

Updates a resource object or a list of resource objects
public patchAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request Request object
return Illuminate\Http\Response Response object containing the generated output

postAction() public method

Creates a new resource object or a list of resource objects
public postAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request Request object
return Illuminate\Http\Response Response object containing the generated output

putAction() public method

Creates or updates a single resource object
public putAction ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request Request object
return Illuminate\Http\Response Response object containing the generated output