Annotations reference
@@ -107,12 +108,19 @@Releases
Annotations
-Annotations are specially-structured comments used in your plumber file to create an API. A full annotation line starts with #*
or #'
, then the annotation keyword @...
, any number of space characters followed by the content. It is recommended to use #*
to differentiate them from roxygen2
annotations.
Annotations are specially-structured comments used in your plumber
+file to create an API. A full annotation line starts with
+#*
or #'
, then the annotation keyword
+@...
, any number of space characters followed by the
+content. It is recommended to use #*
to differentiate them
+from roxygen2
annotations.
Global annotations
-Global annotations can be used anywhere in your plumber file. They are independent from other annotations and do not require an expression.
+Global annotations can be used anywhere in your plumber file. They +are independent from other annotations and do not require an +expression.
More details on @param
-Types are used to define API inputs. You can use most of them in dynamic routes. Note that Plumber first look in block expression to set endpoint parameters names, types and default value. Then @param
annotations and dynamic route/path defined parameters will override Plumber guesses from block expression.
Query parameters currently need to be explicitly converted as they are pushed as is (character) to block expression. Only dynamic route parameters are converted to specified @param
type before being pushed to block expression.
Plumber parameter type to OpenAPI type reference. For programmatic use, pick the one with an asterisk.
+Types are used to define API inputs. You can use most of them in
+dynamic routes. Note that Plumber first look in block expression to set
+endpoint parameters names, types and default value. Then
+@param
annotations and dynamic route/path defined
+parameters will override Plumber guesses from block expression.
Query parameters currently need to be explicitly converted as they
+are pushed as is (character) to block expression. Only dynamic route
+parameters are converted to specified @param
type before
+being pushed to block expression.
Plumber parameter type to OpenAPI type reference. For programmatic +use, pick the one with an asterisk.