### API Example Tab Content Source: https://github.com/mitechnologies/formitize-net-api/blob/master/docs/index.html Defines the content for an API example tab. This includes the example's type and the code block itself. ```handlebars
 
{{{showDiff source.content compare.content}}}
{{/if}} {{#if typeIns}}
{{{source.content}}}
{{/if}} {{#if typeDel}}
{{{compare.content}}}
{{/if}} ``` -------------------------------- ### API Article Comparison View Source: https://github.com/mitechnologies/formitize-net-api/blob/master/docs/index.html This Handlebars template snippet renders a comparison view for API articles, highlighting differences in titles, descriptions, URLs, and example content between versions. It uses tabs to navigate through different examples. ```html

{{underscoreToSpace article.group}} - {{{showDiff article.title compare.title}}}

{{#if article.description}}

{{{showDiff article.description compare.description "nl2br"}}}

{{else}} {{#if compare.description}}

{{{showDiff "" compare.description "nl2br"}}}

{{/if}} {{/if}}
{{{showDiff article.url compare.url}}}
{{subTemplate "article-compare-permission" article=article compare=compare}}
{{#each_compare_title article.examples compare.examples}} {{#if typeSame}}
{{{showDiff source.content compare.content}}}
{{/if}} {{#if typeIns}}
{{{source.content}}}
{{/if}} {{#if typeDel}}
{{{compare.content}}}
{{/if}} {{/each_compare_title}}
{{subTemplate "article-compare-param-block" source=article.parameter compare=compare.parameter _hasType=_hasTypeInParameterFields section="parameter"}} {{subTemplate "article-compare-param-block" source=article.success compare=compare.success _hasType=_hasTypeInSuccessFields section="success"}} {{subTemplate "article-compare-param-block" source=article.error compare=compare.error _col1="Name" _hasType=_hasTypeInErrorFields section="error"}} {{subTemplate "article-sample-request" article=article id=id}}
``` -------------------------------- ### Sample Request Form Structure Source: https://github.com/mitechnologies/formitize-net-api/blob/master/docs/index.html This section outlines the structure for a sample request form, including fields for URL, headers, and parameters. It uses Handlebars to dynamically render form elements based on API definition. ```Handlebars {{#if article.sampleRequest}}

{{\__ "Send a Sample Request"}}

{{\__ "url"}}
{{#if article.header}} {{#if article.header.fields}}

{{\__ "Headers"}}

{{#each article.header.fields}}

{{\__ @key}}

{{#each this}}
{{{type}}}
{{/each}}
{{/each}} {{/if}} {{/if}} {{#if article.parameter}} {{#if article.parameter.fields}}

{{\__ "Parameters"}}

{{#each article.parameter.fields}}

{{\__ @key}}

json
{{#each this}}
{{/each}}
{{/if_gt}} {{subTemplate "article-param-block" params=article.header _hasType=_hasTypeInHeaderFields section="header"}} {{subTemplate "article-param-block" params=article.parameter _hasType=_hasTypeInParameterFields section="parameter"}} {{subTemplate "article-param-block" params=article.success _hasType=_hasTypeInSuccessFields section="success"}} {{subTemplate "article-param-block" params=article.error _col1="Name" _hasType=_hasTypeInErrorFields section="error"}} {{subTemplate "article-sample-request" article=article id=id}} {{#if params}} {{#each params.fields}}

{{\__ @key}}

{{#if ../_hasType}}{{/if}} {{#each this}} {{#if ../../_hasType}} {{/if}} {{/each}}
{{#if ../_col1}}{{\__ ../_col1}}{{else}}{{\__ "Field"}}{{/if}}{{\__ "Type"}}{{\__ "Description"}}
{{{splitFill field "." "  "}}}{{#if optional}} {{\__ "optional"}}{{/if}} {{{type}}} {{{nl2br description}}} {{#if defaultValue}}

{{\__ "Default value:"}} {{{defaultValue}}}

{{/if}} {{#if size}}

{{\__ "Size range:"}} {{{size}}}

{{/if}} {{#if allowedValues}}

{{\__ "Allowed values:"}} {{#each allowedValues}} {{{this}}}{{#unless @last}}, {{/unless}} {{/each}}

{{/if}}
{{/each}} {{#if_gt params.examples.length compare=0}}
{{#each params.examples}}
{{reformat content type}}
{{/each}}
{{/if_gt}} {{/if}} ``` -------------------------------- ### Displaying API Request Parameters Source: https://github.com/mitechnologies/formitize-net-api/blob/master/docs/index.html This Handlebars template snippet dynamically generates input fields for API request parameters. It supports different input types and optional fields, rendering them within an input group. ```html
{{{type}}}
{{/each}} {{/each}} {{/if}}
``` -------------------------------- ### Displaying Form Field Differences Source: https://github.com/mitechnologies/formitize-net-api/blob/master/docs/index.html This Handlebars template logic renders form field names, indicating whether they are the same, inserted, or deleted when comparing two versions. It includes popover functionality for additional details if available. ```html {{#if typeIns}} {{source.name}} {{#if source.title}} {{#unless _last}}, {{/unless}} {{/if}} {{/if}} {{#if typeDel}} {{source.name}} {{#if source.title}} {{#unless _last}}, {{/unless}} {{/if}} {{/if}} {{else}} {{#if typeSame}} {{compare.name}} {{#if compare.title}} {{#unless _last}}, {{/unless}} {{/if}} {{/if}} {{#if typeIns}} {{compare.name}} {{#if compare.title}} {{#unless _last}}, {{/unless}} {{/if}} {{/if}} {{#if typeDel}} {{compare.name}} {{#if compare.title}} {{#unless _last}}, {{/unless}} {{/if}} {{/if}} {{/if}} {{/each_compare_list_field}} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.