mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Used boolean to set the parameter
This commit is contained in:
parent
9eab1452c5
commit
20fd6b753a
@ -48,7 +48,7 @@ class ApiDoc
|
||||
$this->description = $data['description'];
|
||||
}
|
||||
|
||||
$this->isResource = isset($data['resource']);
|
||||
$this->isResource = isset($data['resource']) && $data['resource'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -56,7 +56,7 @@ class YourController extends Controller
|
||||
{
|
||||
/**
|
||||
* @ApiDoc(
|
||||
* resource="true",
|
||||
* resource=true,
|
||||
* description="This is a description of your API method",
|
||||
* filters={
|
||||
* {"name"="a-filter", "dataType"="integer"},
|
||||
@ -82,7 +82,7 @@ class YourController extends Controller
|
||||
|
||||
The following parameters are recognized:
|
||||
|
||||
* `resource`: whether the method describes a resource or not;
|
||||
* `resource`: whether the method describes a resource or not (default: `false`);
|
||||
|
||||
* `description`: a description of the API method;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user