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
Deprecation
Jon Ursenbach edited this page Jan 4, 2020
·
9 revisions
Note: Deprecated status is not currently being used when compiling documentation, however there are plans to make this available.
You might have instances where you need to deprecate a resource action request parameter or path, you can use the :deprecated
"decorator".
/**
* Return information on a specific movie.
*
* @api-label Get a single movie.
* @api-operationid getMovie
* @api-group Movies
*
* @api-path:public /movies/+id
* @api-path:private:deprecated /films/+id
* @api-pathparam id (integer) - Movie ID
*
* @api-contenttype application/json
* @api-scope public
*
* @api-return:public object (\MyApplication\Representations\Movie)
*
* @api-error:public 404 (\MyApplicationRepresentations\Error) - If the movie
* could not be found.
*/
public function GET()
{
...
}
Deprecated decorators are only available on @api-param, @api-queryparam and @api-path.