mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-25 06:00:36 +00:00 
			
		
		
		
	* Consistently use spaces in rest-api-templates/asterisk_processor.py. * Exclude third-party from docs/full-en_US.xml. * Add docs/full-en_US.xml to .gitignore. * Use list() to convert python3 view. * Use python3 print function. * Replace cmp() with equivalent equation. * Replace reference to out of scope subtype variable with name parameter. * Use unescaping triple bracket notation in mustache templates where needed. This causes behavior of Python2 to be maintained when using Python3. * Fix references to has_websocket / is_websocket in res_ari_resource.c.mustache. * Update calculation of has_websocket to use any(). * Use unicode mode for writing output file in transform.py. * Replace 'from swagger_model import *' with explicit import of required symbols. I have not tested spandspflow2pcap.py or voicemailpwcheck.py, only the print syntax has been fixed. Change-Id: If5c5b556a2800d41a3e2cfef080ac2e151178c33
		
			
				
	
	
		
			78 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| {{#api_declaration}}
 | |
| h1. {{name_title}}
 | |
| 
 | |
| || Method || Path<br>h5. Parameters are case-sensitive || 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
 | |
| Parameters are case-sensitive.
 | |
| {{#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}} - {{{wiki_reason}}}
 | |
| {{/error_responses}}
 | |
| {{/has_error_responses}}
 | |
| {{/operations}}
 | |
| {{/apis}}
 | |
| {{/api_declaration}}
 |