    <!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="generator" content="ExDoc v0.18.3">
    <title>Annon.Factories.Configuration – annon_api v0.16.2</title>
    <link rel="stylesheet" href="dist/app-091c05798a.css" />
    
    <script src="dist/sidebar_items-0083d416e2.js"></script>
    
    
    
    
  </head>
  <body data-type="modules">
    <script>try { if(localStorage.getItem('night-mode')) document.body.className += ' night-mode'; } catch (e) { }</script>

    <div class="main">
<button class="sidebar-button sidebar-toggle">
  <span class="icon-menu" aria-hidden="true"></span>
  <span class="sr-only">Toggle Sidebar</span>
</button>
<button class="sidebar-button night-mode-toggle">
  <span class="icon-theme" aria-hidden="true"></span>
  <span class="sr-only">Toggle Theme</span>
</button>
<section class="sidebar">

  
  <a href="readme.html" class="sidebar-projectLink">
    <div class="sidebar-projectDetails">
      <h1 class="sidebar-projectName">
        annon_api
      </h1>
      <h2 class="sidebar-projectVersion">
        v0.16.2
      </h2>
    </div>
    
  </a>

  <form class="sidebar-search" action="search.html">
    <button type="submit" class="search-button">
      <span class="icon-search" aria-hidden="true"></span>
    </button>
    <input name="q" type="text" id="search-list" class="search-input" placeholder="Search" aria-label="Search" autocomplete="off" />
  </form>

  <ul class="sidebar-listNav">
    <li><a id="extras-list" href="#full-list">Pages</a></li>

    
      <li><a id="modules-list" href="#full-list">Modules</a></li>
    

    

    
  </ul>
  <div class="gradient"></div>
  <ul id="full-list" class="sidebar-fullList"></ul>
</section>

<section class="content">
  <div class="content-outer">
    <div id="content" class="content-inner">


      <h1>
        <small class="visible-xs">annon_api v0.16.2</small>
        Annon.Factories.Configuration
        
      </h1>

      
        <section id="moduledoc">
          <p>This module lists Configuration-related factories, a mean suitable
for tests that involve preparation of DB data.</p>

        </section>
      

      
        <section id="summary" class="details-list">
          <h1 class="section-heading">
            <a class="hover-link" href="#summary">
              <span class="icon-link" aria-hidden="true"></span>
              <span class="sr-only">Link to this section</span>
            </a>
            Summary
          </h1>
          

          
  <div class="summary-functions summary">
    <h2>
      <a href="#functions">Functions</a>
    </h2>
    <div class="summary-row">
  <div class="summary-signature">
    <a href="#acl_plugin_factory/0">acl_plugin_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#api_factory/0">api_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#api_request_factory/0">api_request_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#auth_plugin_with_jwt_factory/0">auth_plugin_with_jwt_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#auth_plugin_with_oauth_factory/0">auth_plugin_with_oauth_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#build/2">build(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#build_list/3">build_list(number_of_records, factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#build_pair/2">build_pair(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#cors_plugin_factory/0">cors_plugin_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#create/1">create(_)</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#create/2">create(_, _)</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#create_list/3">create_list(_, _, _)</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#create_pair/2">create_pair(_, _)</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#factory/1">factory(factory_name)</a>
  </div>
  
    <div class="summary-synopsis"><p>Raises a helpful error if no factory is defined</p>
</div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#fields_for/2">fields_for(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#idempotency_plugin_factory/0">idempotency_plugin_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#insert/1">insert(already_built_record)</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#insert/2">insert(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#insert_list/3">insert_list(number_of_records, factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#insert_pair/2">insert_pair(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#ip_restriction_plugin_factory/0">ip_restriction_plugin_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#params_for/2">params_for(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#params_with_assocs/2">params_with_assocs(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#proxy_plugin_factory/0">proxy_plugin_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#proxy_plugin_upstream_factory/0">proxy_plugin_upstream_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#string_params_for/2">string_params_for(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#string_params_with_assocs/2">string_params_with_assocs(factory_name, attrs \\ %{})</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#ua_restriction_plugin_factory/0">ua_restriction_plugin_factory()</a>
  </div>
  
</div>
<div class="summary-row">
  <div class="summary-signature">
    <a href="#validator_plugin_factory/0">validator_plugin_factory()</a>
  </div>
  
</div>

  </div>


          

        </section>
      

      

      
        <section id="functions" class="details-list">
          <h1 class="section-heading">
            <a class="hover-link" href="#functions">
              <span class="icon-link" aria-hidden="true"></span>
              <span class="sr-only">Link to this section</span>
            </a>
            Functions
          </h1>
          <div class="detail" id="acl_plugin_factory/0">
  
  
  <div class="detail-header">
    <a href="#acl_plugin_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">acl_plugin_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="api_factory/0">
  
  
  <div class="detail-header">
    <a href="#api_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">api_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="api_request_factory/0">
  
  
  <div class="detail-header">
    <a href="#api_request_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">api_request_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="auth_plugin_with_jwt_factory/0">
  
  
  <div class="detail-header">
    <a href="#auth_plugin_with_jwt_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">auth_plugin_with_jwt_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="auth_plugin_with_oauth_factory/0">
  
  
  <div class="detail-header">
    <a href="#auth_plugin_with_oauth_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">auth_plugin_with_oauth_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="build/2">
  
  
    <span id="build/1"></span>
  
  <div class="detail-header">
    <a href="#build/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">build(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="build_list/3">
  
  
    <span id="build_list/2"></span>
  
  <div class="detail-header">
    <a href="#build_list/3" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">build_list(number_of_records, factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="build_pair/2">
  
  
    <span id="build_pair/1"></span>
  
  <div class="detail-header">
    <a href="#build_pair/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">build_pair(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="cors_plugin_factory/0">
  
  
  <div class="detail-header">
    <a href="#cors_plugin_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">cors_plugin_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="create/1">
  
  
  <div class="detail-header">
    <a href="#create/1" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">create(_)</span>
    
    
    
      <div class="specs">
        
          <pre>create(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
        
      </div>
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="create/2">
  
  
  <div class="detail-header">
    <a href="#create/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">create(_, _)</span>
    
    
    
      <div class="specs">
        
          <pre>create(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
        
      </div>
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="create_list/3">
  
  
  <div class="detail-header">
    <a href="#create_list/3" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">create_list(_, _, _)</span>
    
    
    
      <div class="specs">
        
          <pre>create_list(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
        
      </div>
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="create_pair/2">
  
  
  <div class="detail-header">
    <a href="#create_pair/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">create_pair(_, _)</span>
    
    
    
      <div class="specs">
        
          <pre>create_pair(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>(), <a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
        
      </div>
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="factory/1">
  
  
  <div class="detail-header">
    <a href="#factory/1" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">factory(factory_name)</span>
    
    
    
      <div class="specs">
        
          <pre>factory(<a href="https://hexdocs.pm/elixir/typespecs.html#basic-types">any</a>()) :: <a href="https://hexdocs.pm/elixir/typespecs.html#built-in-types">no_return</a>()</pre>
        
      </div>
    
  </div>
  <section class="docstring">
    <p>Raises a helpful error if no factory is defined.</p>

  </section>
</div>
<div class="detail" id="fields_for/2">
  
  
    <span id="fields_for/1"></span>
  
  <div class="detail-header">
    <a href="#fields_for/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">fields_for(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="idempotency_plugin_factory/0">
  
  
  <div class="detail-header">
    <a href="#idempotency_plugin_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">idempotency_plugin_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="insert/1">
  
  
  <div class="detail-header">
    <a href="#insert/1" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">insert(already_built_record)</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="insert/2">
  
  
    <span id="insert/1"></span>
  
  <div class="detail-header">
    <a href="#insert/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">insert(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="insert_list/3">
  
  
    <span id="insert_list/2"></span>
  
  <div class="detail-header">
    <a href="#insert_list/3" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">insert_list(number_of_records, factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="insert_pair/2">
  
  
    <span id="insert_pair/1"></span>
  
  <div class="detail-header">
    <a href="#insert_pair/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">insert_pair(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="ip_restriction_plugin_factory/0">
  
  
  <div class="detail-header">
    <a href="#ip_restriction_plugin_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">ip_restriction_plugin_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="params_for/2">
  
  
    <span id="params_for/1"></span>
  
  <div class="detail-header">
    <a href="#params_for/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">params_for(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="params_with_assocs/2">
  
  
    <span id="params_with_assocs/1"></span>
  
  <div class="detail-header">
    <a href="#params_with_assocs/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">params_with_assocs(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="proxy_plugin_factory/0">
  
  
  <div class="detail-header">
    <a href="#proxy_plugin_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">proxy_plugin_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="proxy_plugin_upstream_factory/0">
  
  
  <div class="detail-header">
    <a href="#proxy_plugin_upstream_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">proxy_plugin_upstream_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="string_params_for/2">
  
  
    <span id="string_params_for/1"></span>
  
  <div class="detail-header">
    <a href="#string_params_for/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">string_params_for(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="string_params_with_assocs/2">
  
  
    <span id="string_params_with_assocs/1"></span>
  
  <div class="detail-header">
    <a href="#string_params_with_assocs/2" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">string_params_with_assocs(factory_name, attrs \\ %{})</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="ua_restriction_plugin_factory/0">
  
  
  <div class="detail-header">
    <a href="#ua_restriction_plugin_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">ua_restriction_plugin_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>
<div class="detail" id="validator_plugin_factory/0">
  
  
  <div class="detail-header">
    <a href="#validator_plugin_factory/0" class="detail-link" title="Link to this function">
      <span class="icon-link" aria-hidden="true"></span>
      <span class="sr-only">Link to this function</span>
    </a>
    <span class="signature">validator_plugin_factory()</span>
    
    
    
  </div>
  <section class="docstring">
    
  </section>
</div>

        </section>
      

      
          <footer class="footer">
        <p>
          <span class="line">
            Built using
            <a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" rel="help" target="_blank">ExDoc</a> (v0.18.3),
          </span>
          <span class="line">
            designed by
            <a href="https://twitter.com/dignifiedquire" target="_blank" title="@dignifiedquire">Friedel Ziegelmayer</a>.
            </span>
        </p>
      </footer>
    </div>
  </div>
</section>
</div>
  <script src="dist/app-574613960f.js"></script>
  
  
  
  
  </body>
</html>

