templates/documentation/ql.twig line 1

  1. {% extends "base.twig" %}
  2. {% block body %}
  3.     <h3>Quality Label</h3>
  4.     
  5.     <div class="form-row">
  6.       <div class="col-12 mb-3">
  7.         <h4>Endpoint</h4>
  8.         <div>Any call to the module needs to use the base URL {{ app.request.getSchemeAndHttpHost() }}/{{ service }}.</div>
  9.       </div>
  10.     </div>
  11.     <div class="accordion" id="documentation">
  12.       <div class="accordion-item">
  13.         <h2 class="accordion-header" id="header-distributorDetails">
  14.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-distributorDetails" aria-controls="collapse-distributorDetails">/distributor/details</button>
  15.         </h2>
  16.         <div id="collapse-distributorDetails" class="accordion-collapse collapse" aria-labelledby="header-distributorDetails" data-bs-parent="#documentation">
  17.           <ul class="accordion-body list-group p-0">
  18.             <li class="list-group-item d-flex justify-content-between align-items-center">
  19.               Retrieves details on a given distributor.
  20.             </li>
  21.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
  22.             <li class="list-group-item d-flex justify-content-between align-items-center">
  23.               distributor: int<br/>
  24.               The internal distributor ID. See /distributor/list.
  25.               <span class="badge bg-danger badge-pill">Required</span>
  26.             </li>
  27.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  28.             <li class="list-group-item d-flex justify-content-between align-items-center">
  29.               id: int<br/>
  30.               The internal distributor ID.
  31.             </li>
  32.             <li class="list-group-item d-flex justify-content-between align-items-center">
  33.               title: string<br/>
  34.               The distributor's name.
  35.             </li>
  36.             <li class="list-group-item d-flex justify-content-between align-items-center">
  37.               street: string<br/>
  38.               The distributor's street address.
  39.             </li>
  40.             <li class="list-group-item d-flex justify-content-between align-items-center">
  41.               zip: string<br/>
  42.               The distributor's zip code.
  43.             </li>
  44.             <li class="list-group-item d-flex justify-content-between align-items-center">
  45.               place: string<br/>
  46.               The distributor's place.
  47.             </li>
  48.             <li class="list-group-item d-flex justify-content-between align-items-center">
  49.               country: string<br/>
  50.               The distributor's country code as defined by ISO 3166-1 alpha-2.
  51.             </li>
  52.             <li class="list-group-item d-flex justify-content-between align-items-center">
  53.               labelCount: int<br/>
  54.               The amount of valid quality labels the distributor holds.
  55.             </li>
  56.           </ul>
  57.         </div>
  58.       </div>
  59.       <div class="accordion-item">
  60.         <h2 class="accordion-header" id="header-distributorList">
  61.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-distributorList" aria-controls="collapse-distributorList">/distributor/list</button>
  62.         </h2>
  63.         <div id="collapse-distributorList" class="accordion-collapse collapse" aria-labelledby="header-distributorList" data-bs-parent="#documentation">
  64.           <ul class="accordion-body list-group p-0">
  65.             <li class="list-group-item d-flex justify-content-between align-items-center">
  66.               Retrieves a list of distributors. The scope is limited to those holding valid labels.
  67.             </li>
  68.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">No arguments.</h4></li>
  69.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  70.               <li class="list-group-item d-flex justify-content-between align-items-center">
  71.                 id: int<br/>
  72.                 The internal distributor ID.
  73.               </li>
  74.               <li class="list-group-item d-flex justify-content-between align-items-center">
  75.               title: string<br/>
  76.               The distributor's name.
  77.             </li>
  78.           </ul>
  79.         </div>
  80.       </div>
  81.       <div class="accordion-item">
  82.         <h2 class="accordion-header" id="header-heatPumpTypeList">
  83.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-heatPumpTypeList" aria-controls="collapse-heatPumpTypeList">/heatPumpType/list</button>
  84.         </h2>
  85.         <div id="collapse-heatPumpTypeList" class="accordion-collapse collapse" aria-labelledby="header-heatPumpTypeList" data-bs-parent="#documentation">
  86.           <ul class="accordion-body list-group p-0">
  87.             <li class="list-group-item d-flex justify-content-between align-items-center">
  88.               Retrieves heat pump types.
  89.             </li>
  90.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">No arguments.</h4></li>
  91.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  92.               <li class="list-group-item d-flex justify-content-between align-items-center">
  93.                 id: int<br/>
  94.                 The internal heat pump type ID.
  95.               </li>
  96.               <li class="list-group-item d-flex justify-content-between align-items-center">
  97.                 title: string<br/>
  98.                 The heat pump type as human-readable string.
  99.               </li>
  100.           </ul>
  101.         </div>
  102.       </div>
  103.       <div class="accordion-item">
  104.         <h2 class="accordion-header" id="header-labelDetails">
  105.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-labelDetails" aria-controls="collapse-labelDetails">/label/details</button>
  106.         </h2>
  107.         <div id="collapse-labelDetails" class="accordion-collapse collapse" aria-labelledby="header-labelDetails" data-bs-parent="#documentation">
  108.           <ul class="accordion-body list-group p-0">
  109.             <li class="list-group-item d-flex justify-content-between align-items-center">
  110.               Retrieves details on a given quality label.
  111.             </li>
  112.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
  113.             <li class="list-group-item d-flex justify-content-between align-items-center">
  114.               label: int<br/>
  115.               The internal label ID. See /label/list.
  116.               <span class="badge bg-danger badge-pill">Required</span>
  117.             </li>
  118.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  119.             <li class="list-group-item d-flex justify-content-between align-items-center">
  120.               id: int<br/>
  121.               The internal label ID.
  122.             </li>
  123.             <li class="list-group-item d-flex justify-content-between align-items-center">
  124.               title: string<br/>
  125.               The label title which corresponds to the official label ID formatted as XX-HP-YYYYY.
  126.             </li>
  127.             <li class="list-group-item d-flex justify-content-between align-items-center">
  128.               issueDate: int<br/>
  129.               The label's issue date formatted as UNIX timestamp.
  130.             </li>
  131.             <li class="list-group-item d-flex justify-content-between align-items-center">
  132.               expirationDate: int<br/>
  133.               The label's expiration date formatted as UNIX timestamp.
  134.             </li>
  135.             <li class="list-group-item d-flex justify-content-between align-items-center">
  136.               distributor: int<br/>
  137.               The internal distributor ID. See /distributor/list.
  138.             </li>
  139.             <li class="list-group-item d-flex justify-content-between align-items-center">
  140.               nationalCommission: int<br/>
  141.               The internal national commission ID. See /nationalCommission/list.
  142.             </li>
  143.             <li class="list-group-item d-flex justify-content-between align-items-center">
  144.               id: int<br/>
  145.               The internal heat pump type ID. See /heatPumpType/list.
  146.             </li>
  147.           </ul>
  148.         </div>
  149.       </div>
  150.       <div class="accordion-item">
  151.         <h2 class="accordion-header" id="header-labelList">
  152.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-labelList" aria-controls="collapse-labelList">/label/list</button>
  153.         </h2>
  154.         <div id="collapse-labelList" class="accordion-collapse collapse" aria-labelledby="header-labelList" data-bs-parent="#documentation">
  155.           <ul class="accordion-body list-group p-0">
  156.             <li class="list-group-item d-flex justify-content-between align-items-center">
  157.               Retrieves a list of quality labels. The scope is limited to valid labels.
  158.             </li>
  159.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
  160.               <li class="list-group-item d-flex justify-content-between align-items-center">
  161.                 distributor: int<br/>
  162.                 The distributor ID of the labels to be retrieved. See /distributor/list.
  163.                 <span class="badge bg-success badge-pill">Optional</span>
  164.               </li>
  165.             <li class="list-group-item d-flex justify-content-between align-items-center">
  166.                 heatPumpType: int<br/>
  167.                 The heat pump type ID of the labels to be retrieved. See /heatPumpType/list.
  168.                 <span class="badge bg-success badge-pill">Optional</span>
  169.               </li>
  170.               <li class="list-group-item d-flex justify-content-between align-items-center">
  171.                 nationalCommission: int<br/>
  172.                 The national commission ID of the labels to be retrieved. See /nationalCommission/list.
  173.                 <span class="badge bg-success badge-pill">Optional</span>
  174.               </li>
  175.             <li class="list-group-item d-flex justify-content-between align-items-center">
  176.                 searchTerm: string<br/>
  177.                 The search term which is matched against the distributors' title, the labels' titles and the models' titles.
  178.                 <span class="badge bg-success badge-pill">Optional</span>
  179.               </li>
  180.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  181.               <li class="list-group-item d-flex justify-content-between align-items-center">
  182.                 id: int<br/>
  183.                 The internal label ID.
  184.               </li>
  185.               <li class="list-group-item d-flex justify-content-between align-items-center">
  186.                 title: string<br/>
  187.                 The label title which corresponds to the official label ID formatted as XX-HP-YYYYY.
  188.               </li>
  189.               <li class="list-group-item d-flex justify-content-between align-items-center">
  190.                 distributor: int<br/>
  191.                 The internal distributor ID. See /distributor/list.
  192.               </li>
  193.               <li class="list-group-item d-flex justify-content-between align-items-center">
  194.                 nationalCommission: int<br/>
  195.                 The internal national commission ID. See /nationalCommission/list.
  196.               </li>
  197.               <li class="list-group-item d-flex justify-content-between align-items-center">
  198.                 id: int<br/>
  199.                 The internal heat pump type ID. See /heatPumpType/list.
  200.               </li>
  201.             <li class="list-group-item d-flex justify-content-between align-items-center">
  202.               issueDate: int<br/>
  203.               The label's issue date formatted as UNIX timestamp.
  204.             </li>
  205.             <li class="list-group-item d-flex justify-content-between align-items-center">
  206.               expirationDate: int<br/>
  207.               The label's expiration date formatted as UNIX timestamp.
  208.             </li>
  209.           </ul>
  210.         </div>
  211.       </div>
  212.       <div class="accordion-item">
  213.         <h2 class="accordion-header" id="header-labelPdf">
  214.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-labelPdf" aria-controls="collapse-labelPdf">/label/pdf</button>
  215.         </h2>
  216.         <div id="collapse-labelPdf" class="accordion-collapse collapse" aria-labelledby="header-labelPdf" data-bs-parent="#documentation">
  217.           <ul class="accordion-body list-group p-0">
  218.             <li class="list-group-item d-flex justify-content-between align-items-center">
  219.               Retrieves the quality label PDF file.
  220.             </li>
  221.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
  222.             <li class="list-group-item d-flex justify-content-between align-items-center">
  223.               label: int<br/>
  224.               The internal label ID. See /label/list.
  225.               <span class="badge bg-danger badge-pill">Required</span>
  226.             </li>
  227.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns a PDF file.</h4></li>
  228.           </ul>
  229.         </div>
  230.       </div>
  231.       <div class="accordion-item">
  232.         <h2 class="accordion-header" id="header-modelDetails">
  233.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-modelDetails" aria-controls="collapse-modelDetails">/model/details</button>
  234.         </h2>
  235.         <div id="collapse-modelDetails" class="accordion-collapse collapse" aria-labelledby="header-modelDetails" data-bs-parent="#documentation">
  236.           <ul class="accordion-body list-group p-0">
  237.             <li class="list-group-item d-flex justify-content-between align-items-center">
  238.               Retrieves details on a given model.
  239.             </li>
  240.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
  241.             <li class="list-group-item d-flex justify-content-between align-items-center">
  242.               model: int<br/>
  243.               The internal model ID. See /model/list.
  244.               <span class="badge bg-danger badge-pill">Required</span>
  245.             </li>
  246.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  247.             <li class="list-group-item d-flex justify-content-between align-items-center">
  248.               id: int<br/>
  249.               The internal label ID.
  250.             </li>
  251.             <li class="list-group-item d-flex justify-content-between align-items-center">
  252.               title: string<br/>
  253.               The model title.
  254.             </li>
  255.             <li class="list-group-item d-flex justify-content-between align-items-center">
  256.               label: int<br/>
  257.               The internal ID of the label the model is assigned to. See /label/list.
  258.             </li>
  259.             <li class="list-group-item d-flex justify-content-between align-items-center">
  260.               distributor: int<br/>
  261.               The internal ID of the distributor the model is assigned to. See /distributor/list.
  262.             </li>
  263.             <li class="list-group-item d-flex justify-content-between align-items-center">
  264.               nationalCommission: int<br/>
  265.               The internal ID of the national commission the label is assigned to. See /nationalCommission/list.
  266.             </li>
  267.             <li class="list-group-item d-flex justify-content-between align-items-center">
  268.               heatPumpType: int<br/>
  269.               The internal heat pump type ID. See /heatPumpType/list.
  270.             </li>
  271.           </ul>
  272.         </div>
  273.       </div>
  274.       <div class="accordion-item">
  275.         <h2 class="accordion-header" id="header-modelList">
  276.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-modelList" aria-controls="collapse-modelList">/model/list</button>
  277.         </h2>
  278.         <div id="collapse-modelList" class="accordion-collapse collapse" aria-labelledby="header-modelList" data-bs-parent="#documentation">
  279.           <ul class="accordion-body list-group p-0">
  280.             <li class="list-group-item d-flex justify-content-between align-items-center">
  281.               Retrieves a list of models. The scope is limited to models assigned to valid labels.
  282.             </li>
  283.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
  284.               <li class="list-group-item d-flex justify-content-between align-items-center">
  285.                 distributor: int<br/>
  286.                 The distributor ID of the labels to be retrieved. See /distributor/list.
  287.                 <span class="badge bg-success badge-pill">Optional</span>
  288.               </li>
  289.               <li class="list-group-item d-flex justify-content-between align-items-center">
  290.                 heatPumpType: int<br/>
  291.                 The heat pump type ID of the labels to be retrieved. See /heatPumpType/list.
  292.                 <span class="badge bg-success badge-pill">Optional</span>
  293.               </li>
  294.               <li class="list-group-item d-flex justify-content-between align-items-center">
  295.                 nationalCommission: int<br/>
  296.                 The national commission ID of the labels to be retrieved. See /nationalCommission/list.
  297.                 <span class="badge bg-success badge-pill">Optional</span>
  298.               </li>
  299.             <li class="list-group-item d-flex justify-content-between align-items-center">
  300.                 searchTerm: string<br/>
  301.                 The search term which is matched against the distributors' title, the labels' titles and the models' titles.
  302.                 <span class="badge bg-success badge-pill">Optional</span>
  303.               </li>
  304.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  305.               <li class="list-group-item d-flex justify-content-between align-items-center">
  306.                 id: int<br/>
  307.                 The internal label ID.
  308.               </li>
  309.               <li class="list-group-item d-flex justify-content-between align-items-center">
  310.                 title: string<br/>
  311.                 The model title.
  312.               </li>
  313.             <li class="list-group-item d-flex justify-content-between align-items-center">
  314.               label: int<br/>
  315.               The internal ID of the label the model is assigned to. See /label/list.
  316.             </li>
  317.               <li class="list-group-item d-flex justify-content-between align-items-center">
  318.               distributor: int<br/>
  319.               The internal ID of the distributor the label is assigned to. See /distributor/list.
  320.             </li>
  321.             <li class="list-group-item d-flex justify-content-between align-items-center">
  322.               nationalCommission: int<br/>
  323.               The internal ID of the national commission the label is assigned to. See /nationalCommission/list.
  324.             </li>
  325.               <li class="list-group-item d-flex justify-content-between align-items-center">
  326.                 id: int<br/>
  327.                 The internal heat pump type ID. See /heatPumpType/list.
  328.               </li>
  329.           </ul>
  330.         </div>
  331.       </div>
  332.       <div class="accordion-item">
  333.         <h2 class="accordion-header" id="header-nationalCommissionDetails">
  334.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-nationalCommissionDetails" aria-controls="collapse-nationalCommissionDetails">/nationalCommission/details</button>
  335.         </h2>
  336.         <div id="collapse-nationalCommissionDetails" class="accordion-collapse collapse" aria-labelledby="header-nationalCommissionDetails" data-bs-parent="#documentation">
  337.           <ul class="accordion-body list-group p-0">
  338.             <li class="list-group-item d-flex justify-content-between align-items-center">
  339.               Retrieves details on a given national commission.
  340.             </li>
  341.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Arguments:</h4></li>
  342.             <li class="list-group-item d-flex justify-content-between align-items-center">
  343.               nationalCommission: int<br/>
  344.               The internal national commission ID. See /nationalCommission/list.
  345.               <span class="badge bg-danger badge-pill">Required</span>
  346.             </li>
  347.             <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  348.             <li class="list-group-item d-flex justify-content-between align-items-center">
  349.               id: int<br/>
  350.               The internal national commission ID.
  351.             </li>
  352.             <li class="list-group-item d-flex justify-content-between align-items-center">
  353.               title: string<br/>
  354.               The national commission's name.
  355.             </li>
  356.             <li class="list-group-item d-flex justify-content-between align-items-center">
  357.               street: string<br/>
  358.               The national commission's street address.
  359.             </li>
  360.             <li class="list-group-item d-flex justify-content-between align-items-center">
  361.               zip: string<br/>
  362.               The national commission's zip code.
  363.             </li>
  364.             <li class="list-group-item d-flex justify-content-between align-items-center">
  365.               place: string<br/>
  366.               The national commission's place.
  367.             </li>
  368.             <li class="list-group-item d-flex justify-content-between align-items-center">
  369.               country: string<br/>
  370.               The national commission's country code as defined by ISO 3166-1 alpha-2.
  371.             </li>
  372.             <li class="list-group-item d-flex justify-content-between align-items-center">
  373.               labelCount: int<br/>
  374.               The amount of valid quality labels the national commission has issued.
  375.             </li>
  376.           </ul>
  377.         </div>
  378.       </div>
  379.       <div class="accordion-item">
  380.         <h2 class="accordion-header" id="header-nationalCommissionList">
  381.           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-nationalCommissionList" aria-controls="collapse-nationalCommissionList">/nationalCommission/list</button>
  382.         </h2>
  383.         <div id="collapse-nationalCommissionList" class="accordion-collapse collapse" aria-labelledby="header-nationalCommissionList" data-bs-parent="#documentation">
  384.           <ul class="accordion-body list-group p-0">
  385.             <li class="list-group-item d-flex justify-content-between align-items-center">
  386.               Retrieves a list of national commission. The scope is limited to those having issued currently valid labels.
  387.             </li>
  388.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">No arguments.</h4></li>
  389.               <li class="list-group-item d-flex justify-content-between align-items-center"><h4 class="my-0">Returns JSON data:</h4></li>
  390.               <li class="list-group-item d-flex justify-content-between align-items-center">
  391.                 id: int<br/>
  392.                 The internal national commission ID.
  393.               </li>
  394.               <li class="list-group-item d-flex justify-content-between align-items-center">
  395.               title: string<br/>
  396.               The national commission's name.
  397.             </li>
  398.           </ul>
  399.         </div>
  400.       </div>
  401.     </div>
  402. {% endblock %}