<%inherit file="base-level-2.html"/> <%block name="title_more">- ${doc['title']} <%block name="breadcrumbs">
 

${doc['title']}

${doc['method'].upper()} ${doc['resource']}

${doc['description']} % if len(doc['params']) > 0:

Parameters

% for param in doc['params']: % endfor
Parameter Description Optional Default Values
${param['name']} % if 'description' in param: ${param['description']} % endif % if 'optional' in param and param['optional']!=False: True % else: False % endif % if 'default' in param: ${param['default']} % endif % if 'items' in param: % for item_key, item_value in sorted(param['items'].items()): ${item_key}: ${item_value} % endfor % endif
% endif % if doc['res_ok'] != '' or doc['res_fail'] != '' :

Sample

% endif % if doc['res_ok'] != '':

Result success

${doc['res_ok']}
% endif % if doc['res_fail'] != '':

Result fail

${doc['res_fail']}
% endif

Test unit

<% x = 0 %> % for unit_name, unit_url in sorted(config['test_units'].items()): <% from hashlib import md5 unit_hash = md5(str(unit_name + unit_url).encode()).hexdigest() active = " in " if x==0 else "" x+=1 unit_url_view = unit_url.replace(':version', version) + doc['resource'] %>
% if len(doc['params']) > 0:
% for param in doc['params']: <% if 'default' not in param: param['default']='' %> % if "type_view" in param: % if param['type_view'] == "dropdown":
% endif % else: % if param['type'] == "string":
% endif % if param['type'] == "integer":
% endif % if param['type'] == "binary":
% endif % endif % endfor
% else:
Without parameter
% endif
% endfor
% for tmp_version, tmp_docs in sorted(docs.items()): % if len(tmp_docs) > 0: <% from hashlib import md5 unit_hash = md5(str(tmp_version).encode()).hexdigest() active = " in " if tmp_version == version else "" %>
% endif % endfor