mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-25 22:18:07 +00:00 
			
		
		
		
	This patch improves the documentation of ARI on the wiki. Specifically, it addresses the following: * Allowed values and allowed ranges weren't documented. This was particularly frustrating, as Asterisk would reject query parameters with disallowed values - but we didn't tell anyone what the allowed values were. * The /play/id operation on /channels and /bridges failed to document all of the added media resource types. * Documentation for creating a channel into a Stasis application failed to note when it occurred, and that creating a channel into Stasis conflicts with creating a channel into the dialplan. * Some other minor tweaks in the mustache templates, including italicizing the parameter type, putting the default value on its own sub-bullet, and some other nicities. Review: https://reviewboard.asterisk.org/r/4351 ........ Merged revisions 431145 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@431148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			76 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {{#api_declaration}}
 | |
| h1. {{name_title}}
 | |
| 
 | |
| || Method || Path || Return Model || Summary ||
 | |
| {{#apis}}
 | |
| {{#operations}}
 | |
| | {{http_method}} | [{{wiki_path}}|#{{nickname}}] | {{#response_class}}{{#is_primitive}}{{name}}{{/is_primitive}}{{^is_primitive}}[{{wiki_name}}|{{wiki_prefix}} REST Data Models#{{singular_name}}]{{/is_primitive}}{{/response_class}} | {{summary}} |
 | |
| {{/operations}}
 | |
| {{/apis}}
 | |
| {{#apis}}
 | |
| {{#operations}}
 | |
| 
 | |
| {anchor:{{nickname}}}
 | |
| h2. {{nickname}}: {{http_method}} {{wiki_path}}
 | |
| 
 | |
| {{{wiki_summary}}}{{#wiki_notes}} {{{wiki_notes}}}{{/wiki_notes}}
 | |
| {{#has_path_parameters}}
 | |
| 
 | |
| h3. Path parameters
 | |
| {{#path_parameters}}
 | |
| * {{name}}: _{{data_type}}_ - {{{wiki_description}}}
 | |
| {{#default_value}}
 | |
| ** Default: {{default_value}}
 | |
| {{/default_value}}
 | |
| {{#wiki_allowable_values}}
 | |
| ** {{wiki_allowable_values}}
 | |
| {{/wiki_allowable_values}}
 | |
| {{/path_parameters}}
 | |
| {{/has_path_parameters}}
 | |
| {{#has_query_parameters}}
 | |
| 
 | |
| h3. Query parameters
 | |
| {{#query_parameters}}
 | |
| * {{name}}: _{{data_type}}_ -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
 | |
| {{#default_value}}
 | |
| ** Default: {{default_value}}
 | |
| {{/default_value}}
 | |
| {{#wiki_allowable_values}}
 | |
| ** {{wiki_allowable_values}}
 | |
| {{/wiki_allowable_values}}
 | |
| {{#allow_multiple}}
 | |
| ** Allows comma separated values.
 | |
| {{/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
 | |
| {{#header_parameters}}
 | |
| * {{name}}: {{data_type}}{{#default_value}} = {{default_value}}{{/default_value}} -{{#required}} *(required)*{{/required}} {{{wiki_description}}}
 | |
| {{#allow_multiple}}
 | |
| ** Allows comma separated values.
 | |
| {{/allow_multiple}}
 | |
| {{/header_parameters}}
 | |
| {{/has_header_parameters}}
 | |
| {{#has_error_responses}}
 | |
| 
 | |
| h3. Error Responses
 | |
| {{#error_responses}}
 | |
| * {{code}} - {{{reason}}}
 | |
| {{/error_responses}}
 | |
| {{/has_error_responses}}
 | |
| {{/operations}}
 | |
| {{/apis}}
 | |
| {{/api_declaration}}
 |