summaryrefslogtreecommitdiff
path: root/rest-api-templates/api.wiki.mustache
diff options
context:
space:
mode:
authorSam Galarneau <sgalarneau@digium.com>2014-07-03 15:35:22 +0000
committerSam Galarneau <sgalarneau@digium.com>2014-07-03 15:35:22 +0000
commit5db3f38d5a8d49e4d07e6342b4557092496d28de (patch)
tree531d9ab1906396fbe8b55eb750d3e6c0c530bbf1 /rest-api-templates/api.wiki.mustache
parentda469fd9f67bcb3424102e1503894387071d84aa (diff)
api.wiki.mustache: Update wiki template to support body parameters
This patch updates the api.wiki.mustache template and the swagger_model python script to understand if an operation has a body parameter. If an operation does have a body parameter, it will now be displayed in the corresponding wiki entry. ........ Merged revisions 407389 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@417877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rest-api-templates/api.wiki.mustache')
-rw-r--r--rest-api-templates/api.wiki.mustache10
1 files changed, 10 insertions, 0 deletions
diff --git a/rest-api-templates/api.wiki.mustache b/rest-api-templates/api.wiki.mustache
index 322bb58df..de6de2dcc 100644
--- a/rest-api-templates/api.wiki.mustache
+++ b/rest-api-templates/api.wiki.mustache
@@ -31,6 +31,16 @@ h3. Query parameters
{{/allow_multiple}}
{{/query_parameters}}
{{/has_query_parameters}}
+{{#has_body_parameter}}
+
+h3. Body parameter
+{{#body_parameter}}
+* {{name}}: {{data_type}}{{#default_value}} = {{default_value}}{{/default_value}} -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
+{{#allow_multiple}}
+** Allows comma separated values.
+{{/allow_multiple}}
+{{/body_parameter}}
+{{/has_body_parameter}}
{{#has_header_parameters}}
h3. Header parameters