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‐vendortag
Jon Ursenbach edited this page Jan 4, 2020
·
1 revision
This defines a vendor tag in your API. With these, you can specify additional metadata (requirements specific to your API, notes like "requiresAUser", or anything else you can think of) on your resource actions or representation fields.
With Mill's generator commands, you can also later filter down your documentation to only those that have specific vendor tags.
@api-vendortag vendorTagName
Required? | Needs a visibility | Supports versioning | Supports deprecation |
---|---|---|---|
× | × | × | × |
Tag | Optional | Description |
---|---|---|
vendortag | × | Name of the vendor tag |
On a resource action:
/**
* ...
*
* @api-vendortag needs:SomeApplicationFeature
*
* ...
*/
public function PATCH()
{
...
}
On a representation field:
$representation = [
...
/**
* @api-data download (boolean, needs:SomeApplicationFeature) - Download
* permission setting
*/
'download' => true,
...
];