diff --git a/Annotation/ApiDoc.php b/Annotation/ApiDoc.php index 04115a9..dd3973d 100644 --- a/Annotation/ApiDoc.php +++ b/Annotation/ApiDoc.php @@ -222,6 +222,10 @@ class ApiDoc if (isset($data['deprecated'])) { $this->deprecated = $data['deprecated']; } + + if (isset($data['https'])) { + $this->https = $data['https']; + } } /** diff --git a/Resources/doc/index.md b/Resources/doc/index.md index 0196e73..09ffa70 100644 --- a/Resources/doc/index.md +++ b/Resources/doc/index.md @@ -123,6 +123,8 @@ The following properties are available: * `description`: a description of the API method; +* `https`: whether the method described requires the https protocol (default: `false`); + * `deprecated`: allow to set method as deprecated (default: `false`); * `filters`: an array of filters;