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‐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.
@api-label description
Required? | Needs a visibility | Supports versioning | Supports deprecation |
---|---|---|---|
✓ | × | × | × |
Tag | Optional | Description |
---|---|---|
description | × | Description of what resource, or resource action handles. |
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()
{
...
}