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‐path
Jon Ursenbach edited this page Jan 4, 2020
·
1 revision
This allows you to describe the path(s) that a resource action services.
@api-path:visibility path
Required? | Needs a visibility | Supports versioning | Supports deprecation |
---|---|---|---|
✓ | ✓ | × | ✓ |
Tag | Optional | Description |
---|---|---|
path | × | This is the path that the resource action services. It's recommended that these conform to RFC 3986 and RFC 6570. |
/**
* 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
* @api-path:private:deprecated /movie/+id
*
* ...
*/
public function PATCH()
{
...
}