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

@api‐label

Jon Ursenbach edited this page Jan 4, 2020 · 5 revisions

The `@api-label annotation is a short description of what a representation, or resource action action, handles.

Syntax

@api-label description

Requirements

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

Breakdown

Tag Optional Description
description × Description of what resource, or resource action handles.

Examples

On a representation:

/**
 * Data representation for a specific movie.
 *
 * @api-label Movie
 */
class Movie extends Representation
{
    ...
}

On a resource action:

/**
 * Update a movies data.
 *
 * @api-label Update a movie.
 * @api-operationid updateMovie
 * @api-group Movies
 *
 * @api-path:public /movies/+id
 * @api-pathparam id `1234` (integer) - Movie ID
 *
 * ...
 */
public function PATCH()
{
    ...
}