This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
@api‐see
Jon Ursenbach edited this page Jan 4, 2020
·
5 revisions
This is a reference pointer that allows you to pull in related documentation into a representation.
@api-see \Class::method prefix
Required? | Needs a visibility | Supports versioning | Supports deprecation |
---|---|---|---|
× | × | × | × |
Tag | Optional | Description |
---|---|---|
\Class::method | × | This is a fully qualified class name and method where the related representation that you want to import exists. |
prefix | ✓ | If you want to prefix the imported documentation with a @api-data name prefix, do so here. |
$representation = [
...
/**
* @api-data privacy (object) - Privacy settings
* @api-see \MyApplication\SomeRepresentation::getPrivacy privacy
*/
'privacy' => $this->getPrivacy($object, $request)
...
];
private function getPrivacy($object, $request)
{
return [
/**
* @api-data download (boolean) - Download permission setting
*/
'download' => true
];
}
From here, download
will be imported into the representation documentation as privacy.download
.