Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

@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.

Syntax

@api-vendortag vendorTagName

Requirements

Required? Needs a visibility Supports versioning Supports deprecation
× × × ×

Breakdown

Tag Optional Description
vendortag × Name of the vendor tag

Examples

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,

    ...
];