ApiResource

Namespace

IO\Api

Extends
Properties
Type Name Description

ApiResponse

$response

Request

$request

ResponseCode

$defaultCode

Methods
public __construct($request, $response)

ApiResource constructor.

Parameters

Type

Name

Description

Request

$request

ApiResponse

$response

public index(): Response
public store(): Response
public show($selector): Response
Parameters

Type

Name

Description

string

$selector

public update($selector): Response
Parameters

Type

Name

Description

string

$selector

public destroy($selector): Response
Parameters

Type

Name

Description

string

$selector